/* ── LOGIN PAGE ── */
body.login-page {
  background:
    radial-gradient(circle at top left, rgba(79,134,247,.10), transparent 34%),
    radial-gradient(circle at top right, rgba(134,175,255,.12), transparent 26%),
    linear-gradient(180deg, #F8FAFD 0%, #F3F7FC 100%);
  min-height: 100vh;
  overflow: hidden;
}
.login-split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 100vh;
}
.login-panel { position: relative; }

/* Brand panel */
.login-panel--brand {
  background:
    radial-gradient(circle at 20% 20%, rgba(79,134,247,.18), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,.9) 0%, rgba(233,241,251,.96) 100%);
  border-right: 1px solid rgba(15,23,42,.08);
  overflow: hidden;
}
.login-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .18;
}
.login-panel__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 48px 56px;
}
.login-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.login-logo span {
  font-family: 'Sora', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.login-panel__copy {
  margin-top: auto;
  margin-bottom: 48px;
}
.login-panel__copy h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2.1rem, 3.6vw, 3.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: 20px;
}
.login-panel__copy p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 360px;
}
.login-panel__dots { display: flex; gap: 8px; }
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(15,23,42,.18);
}
.dot--active { background: var(--blue-lt); width: 24px; border-radius: 4px; }

/* Form panel */
.login-panel--form {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.72);
  padding: 48px 24px;
  overflow-y: auto;
  backdrop-filter: blur(16px);
}
.login-form-wrap {
  width: 100%;
  max-width: 480px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 24px 70px rgba(15,23,42,.08);
}
.login-lang {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  justify-content: flex-end;
}
.login-lang a { color: var(--text-muted); text-decoration: none; font-weight: 600; transition: color var(--transition); }
.login-lang a.active, .login-lang a:hover { color: var(--blue); }
.login-header { margin-bottom: 32px; }
.login-header h1 {
  font-family: 'Sora', sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: 10px;
}
.login-header p { color: var(--text-muted); font-size: .98rem; }

/* Alerts */
.alert {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 24px;
  font-size: .875rem;
}
.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.alert div { display: flex; flex-direction: column; gap: 4px; }
.alert--error {
  background: rgba(220,38,38,.07);
  border: 1px solid rgba(220,38,38,.18);
  color: #991B1B;
}
.alert--error svg { color: #DC2626; }
.alert--locked {
  background: rgba(245,158,11,.08);
  border: 1px solid rgba(245,158,11,.2);
  color: #92400E;
}
.alert--locked svg { color: #D97706; }
.alert--locked strong { display: block; font-weight: 600; margin-bottom: 2px; }
.attempts-warn { color: var(--text-muted); font-size: .8rem; }

/* Form fields */
.login-form { display: flex; flex-direction: column; gap: 20px; }
.field-group { display: flex; flex-direction: column; gap: 8px; }
.field-group label { font-size: .85rem; color: var(--text-muted); font-weight: 500; }
.field-group input {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  font-size: .95rem;
  padding: 13px 16px;
  outline: none;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field-group input:focus {
  border-color: rgba(37,99,235,.28);
  box-shadow: 0 0 0 4px rgba(79,134,247,.12);
}
.field-group--error input {
  border-color: rgba(220,38,38,.35);
}
.field-group input::placeholder { color: rgba(95,107,122,.44); }
.field-group input:disabled { opacity: .5; cursor: not-allowed; }

/* Password toggle */
.password-wrap { position: relative; }
.password-wrap input { padding-right: 48px; }
.pwd-toggle {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  display: flex;
}
.pwd-toggle svg { width: 18px; height: 18px; }
.pwd-toggle:hover { color: var(--text); }

/* Meta row */
.login-meta { display: flex; justify-content: flex-end; }
.forgot-link { font-size: .85rem; color: var(--blue-lt); text-decoration: none; }
.forgot-link:hover { text-decoration: underline; }

/* Submit btn */
#submitBtn { position: relative; padding: 14px; font-size: 1rem; margin-top: 4px; }
.btn-loader { width: 18px; height: 18px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Back link */
.back-link {
  display: block;
  text-align: center;
  margin-top: 28px;
  font-size: .875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.back-link:hover { color: var(--text); }

/* Countdown */
#countdown { font-weight: 600; }

/* Responsive */
@media (max-width: 768px) {
  .login-split { grid-template-columns: 1fr; }
  .login-panel--brand { display: none; }
  body.login-page { overflow: auto; }
  .login-panel--form { padding: 24px 16px; min-height: 100vh; }
  .login-form-wrap { padding: 28px 22px; border-radius: 20px; }
}
