/* Login — design system Bela Vista */

:root {
  --lbv-bg: #cfddea;
  --lbv-ink: #0f0f0f;
  --lbv-muted: #4b5563;
  --lbv-surface: rgba(255, 255, 255, 0.58);
  --lbv-card: #f1f2f3;
  --lbv-primary: #000000;
  --lbv-glass-shadow: rgba(255, 255, 255, 0.1) 0px 1px 1px 0px inset,
    rgba(50, 50, 93, 0.22) 0px 40px 90px -24px,
    rgba(0, 0, 0, 0.2) 0px 28px 56px -28px;
  --lbv-font: "Inter", system-ui, sans-serif;
  --lbv-display: "Manrope", var(--lbv-font);
  --lbv-touch: 3.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.login-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--lbv-font);
  font-size: 1.125rem;
  color: var(--lbv-ink);
  background: var(--lbv-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  padding-top: max(1.25rem, env(safe-area-inset-top));
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
}

.font-manrope {
  font-family: var(--lbv-display);
}

.login-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 100% 70% at 50% -10%, rgba(255, 255, 255, 0.5), transparent 50%),
    linear-gradient(180deg, var(--lbv-bg) 0%, #b8c8d8 100%);
}

.login-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(165deg, rgba(15, 15, 15, 0.35), rgba(15, 15, 15, 0.5)),
    url("hero-aerial.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.22;
}

.login-shell {
  width: min(28rem, 100%);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: login-rise 0.7s ease-out both;
}

@keyframes login-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-brand {
  text-align: center;
  color: var(--lbv-ink);
}

.login-logo {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--lbv-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.login-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lbv-muted);
}

.login-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.login-lead {
  margin: 0 auto;
  max-width: 22rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--lbv-muted);
}

.glass-panel {
  background: var(--lbv-surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--lbv-glass-shadow);
}

.login-card {
  padding: 1.75rem 1.5rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.field label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--lbv-ink);
}

.field input {
  width: 100%;
  min-height: var(--lbv-touch);
  padding: 0 1.125rem;
  font-size: 1.1875rem;
  font-family: inherit;
  color: var(--lbv-ink);
  background: #fff;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input::placeholder {
  color: #9ca3af;
}

.field input:focus {
  outline: none;
  border-color: var(--lbv-primary);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08);
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 3.5rem;
}

.toggle-pass {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  background: var(--lbv-card);
  border-radius: 0.75rem;
  color: var(--lbv-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-pass:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

.login-error {
  margin: 0;
  padding: 0.875rem 1rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 1rem;
  color: #991b1b;
  font-size: 1.0625rem;
  font-weight: 600;
}

.login-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 3.75rem;
  margin-top: 0.25rem;
  padding: 0 1.5rem;
  font-family: var(--lbv-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  background: var(--lbv-primary);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, background 0.2s;
}

.login-submit:hover {
  background: #1a1a1a;
  transform: translateY(-1px);
}

.login-submit:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}

.login-submit:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.login-hint {
  margin: 1.25rem 0 0;
  font-size: 0.9375rem;
  color: var(--lbv-muted);
  text-align: center;
  line-height: 1.5;
}

.login-footer {
  text-align: center;
}

.login-footer p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--lbv-muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .login-shell {
    animation: none;
  }
}
