/* =========================================================
   LOGIN COMPONENT — Executive Suite (Light Mode)
   Fondo blanco marfil, card blanca con sombras suaves,
   acentos joya, tipografía oscura elegante.
   ========================================================= */

.login-page {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F5F4F1;
  background-image:
    radial-gradient(ellipse at 25% 15%, rgba(201, 151, 60, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 85%, rgba(55, 48, 163, 0.05) 0%, transparent 60%);
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Subtle ambient shapes */
.glow-tl {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 151, 60, 0.05) 0%, transparent 70%);
  top: -180px;
  left: -180px;
  pointer-events: none;
}

.glow-br {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(55, 48, 163, 0.04) 0%, transparent 70%);
  bottom: -140px;
  right: -140px;
  pointer-events: none;
}

/* ── Login Card ── */
.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: #FFFFFF;
  border: 1px solid rgba(15, 13, 10, 0.08);
  border-radius: 24px;
  padding: 48px 42px;
  box-shadow:
    0 1px 3px rgba(15, 13, 10, 0.04),
    0 16px 48px rgba(15, 13, 10, 0.08),
    0 0 0 1px rgba(15, 13, 10, 0.02);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Inner decorative border — gold accent */
.login-card::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(201, 151, 60, 0.12);
  border-radius: 16px;
  pointer-events: none;
}

/* ── Brand ── */
.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.login-logo-wrap {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0D1B2A, #1A0E2E);
  border: 1px solid rgba(201, 151, 60, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(13, 27, 42, 0.22);
  margin-bottom: 4px;
}

.login-logo-icon { width: 34px; height: 34px; }

.login-eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #A8A29E;
  margin: 0;
}

.login-title {
  font-family: 'Inter', 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #0F0D0A;
  margin: 0;
  line-height: 1;
}

.login-title-gold {
  background: linear-gradient(90deg, #C9973C, #A67C28);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-sub {
  font-size: 11px;
  color: #A8A29E;
  margin: 0;
  font-weight: 400;
}

.login-sep {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15, 13, 10, 0.08), transparent);
}

/* ── Form ── */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-lbl {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #78716C;
}

.field-lbl-icon {
  width: 12px;
  height: 12px;
  color: #A8A29E;
  flex-shrink: 0;
}

.field-input {
  height: 54px;
  width: 100%;
  padding: 0 22px;
  background: #F5F4F1;
  border: 1px solid rgba(15, 13, 10, 0.12);
  border-radius: 9999px;
  color: #0F0D0A;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 400;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.field-input::placeholder { color: #A8A29E; }

.field-input:focus {
  border-color: #C9973C;
  box-shadow: 0 0 0 3px rgba(201, 151, 60, 0.12);
  background: #FFFFFF;
}

/* ── CTA Button ── */
.btn-cta {
  width: 100%;
  height: 54px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #0D1B2A, #1A0E2E);
  border: none;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(13, 27, 42, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(13, 27, 42, 0.35);
}

.btn-cta:active { transform: translateY(0); }
.btn-cta:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

/* ── Error ── */
.login-error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.14);
  border-radius: 12px;
  color: #B91C1C;
  font-size: 12px;
  font-weight: 500;
  animation: fadeUp 0.3s ease;
}

.login-error svg { width: 15px; height: 15px; flex-shrink: 0; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── SSO Divider ── */
.sso-divider {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sso-line {
  flex: 1;
  height: 1px;
  background: rgba(15, 13, 10, 0.08);
}

.sso-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #A8A29E;
  white-space: nowrap;
}

/* ── SSO Button ── */
.btn-sso {
  width: 100%;
  height: 52px;
  border-radius: 9999px;
  background: #F5F4F1;
  border: 1px solid rgba(15, 13, 10, 0.10);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  font-family: 'Outfit', sans-serif;
}

.btn-sso:hover {
  background: #EEECE7;
  border-color: rgba(201, 151, 60, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 13, 10, 0.08);
}

.btn-sso:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.ms-logo { width: 20px; height: 20px; flex-shrink: 0; }

.sso-text { flex: 1; text-align: left; }

.sso-provider {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #0F0D0A;
}

.sso-hint {
  display: block;
  font-size: 10px;
  color: #A8A29E;
}

.sso-arr {
  width: 16px;
  height: 16px;
  color: #A8A29E;
  flex-shrink: 0;
}

/* ── Security Footer ── */
.login-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #D6D3D1;
}

.login-security svg { width: 11px; height: 11px; color: #D6D3D1; }

@media (max-width: 480px) {
  .login-card { padding: 28px 22px; }
  .login-title { font-size: 22px; letter-spacing: 1px; }
}
