@font-face {
  font-family: 'EB Garamond';
  src: url('/shared/fonts/EBGaramond-publica.woff2?v=5f1a1f1750') format('woff2');
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('/shared/fonts/DMSans-Variable-latin.woff2?v=6fade13e23') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

body.team-login {
  color-scheme: dark;
  --login-font-display: 'EB Garamond';
  --login-font-sans: 'DM Sans';
  --login-night: #191520;
  --login-surface: #2c2338;
  --login-surface-deep: #241b2d;
  --login-cream: #f4edf7;
  --login-muted: #c1b1cb;
  --login-rose: #edc0d1;
  --login-line: #a887a9;
  --login-error: #ffd8df;
  --login-error-bg: #4a2633;
  --login-error-line: #f08fa8;
  min-height: 100svh;
  margin: 0;
  padding: 32px 20px;
  background: var(--login-night);
  color: var(--login-cream);
  font-family: var(--login-font-sans), sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

body.team-login .login-wrap {
  width: min(100%, 430px);
  min-height: calc(100svh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  margin-inline: auto;
}

body.team-login .brand-area {
  margin: 0 0 24px;
  text-align: center;
}

body.team-login .brand-logo-wrap {
  display: flex;
  justify-content: center;
  margin: 0;
}

body.team-login .brand-logo {
  width: min(174px, 58vw);
  height: 42px;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: brightness(0) invert(1);
}

body.team-login .card {
  width: 100%;
  padding: 32px 32px 28px;
  border: 1px solid #b892ad;
  border-radius: 18px;
  background: linear-gradient(145deg, #34273f, var(--login-surface) 52%, #292035);
  box-shadow: inset 0 1px 0 #f4edf71f, inset 0 -1px 0 #08040d88;
}

body.team-login .card-title {
  margin: 0 0 6px;
  color: var(--login-cream);
  font: 600 38px/1.03 var(--login-font-display), sans-serif;
  letter-spacing: -.025em;
}

body.team-login .card-sub {
  margin: 0 0 28px;
  color: var(--login-muted);
  font-size: 14px;
  line-height: 1.5;
}

body.team-login .field { margin-bottom: 18px; }
body.team-login .field-clave { position: relative; }

body.team-login .field label {
  display: block;
  margin: 0 0 8px;
  color: var(--login-cream);
  font-size: 13px;
  font-weight: 600;
}

body.team-login .field input {
  width: 100%;
  min-height: 50px;
  padding: 11px 14px;
  border: 1px solid var(--login-line);
  border-radius: 10px;
  background: var(--login-surface-deep);
  color: var(--login-cream);
  font: 400 16px/1.35 var(--login-font-sans), sans-serif;
}

body.team-login .field-clave input { padding-right: 98px; }

body.team-login .field input::placeholder {
  color: var(--login-muted);
  opacity: 1;
}

body.team-login .ver-clave {
  position: absolute;
  right: 1px;
  bottom: 1px;
  min-width: 88px;
  min-height: 48px;
  padding: 8px 12px;
  border: 0;
  border-radius: 0 9px 9px 0;
  background: transparent;
  color: var(--login-rose);
  font: 600 13px/1.2 var(--login-font-sans), sans-serif;
  cursor: pointer;
}

body.team-login .ver-clave[aria-pressed='true'] { background: #edc0d126; }

body.team-login .btn {
  width: 100%;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 17px;
  background: linear-gradient(135deg, #60465d, #3a2a40 52%, #51384b) padding-box,
    linear-gradient(135deg, #eee2fc, #9b79b0 38%, #e0c6f2 74%, #9880ac) border-box;
  box-shadow: inset 0 1px 1px #f3dce738, 0 0 26px -12px #d3a3b688;
  color: #f4edf7;
  font: 600 14px/1.3 var(--login-font-sans), sans-serif;
  text-align: left;
  cursor: pointer;
}

body.team-login .btn:hover { filter: brightness(1.08); }
body.team-login .btn:disabled { cursor: not-allowed; opacity: .6; filter: none; }
body.team-login .btn-arrow { width: 18px; height: 18px; flex: 0 0 18px; }

body.team-login .error {
  display: none;
  margin: 0 0 18px;
  padding: 11px 13px;
  border: 1px solid var(--login-error-line);
  border-radius: 10px;
  background: var(--login-error-bg);
  color: var(--login-error);
  font-size: 13px;
  line-height: 1.45;
}

body.team-login .client-link {
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px solid #a887a966;
  color: var(--login-muted);
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
}

body.team-login .client-link a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 5px 2px;
  color: var(--login-rose);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.team-login .footer {
  margin-top: 22px;
  text-align: center;
}

body.team-login .footer-disclaimer {
  color: var(--login-muted);
  font-size: 12px;
  line-height: 1.4;
}

body.team-login .field input:focus-visible,
body.team-login .ver-clave:focus-visible,
body.team-login .btn:focus-visible,
body.team-login .client-link a:focus-visible {
  outline: 2px solid #edc0d1;
  outline-offset: 4px;
}

@media (max-width: 600px) {
  body.team-login { padding: 24px 16px; }
  body.team-login .login-wrap { min-height: calc(100svh - 48px); }
  body.team-login .card { padding: 27px 22px 25px; }
  body.team-login .card-title { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  body.team-login *, body.team-login *::before, body.team-login *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (forced-colors: active) {
  body.team-login :is(input, button, a):focus-visible { outline: 2px solid #edc0d1; outline-offset: 4px; }
}
