/* ═══════════════════════════════════════════════
   LOGIN PAGE — Clean centered card
   Uses universal background from base.html
   ═══════════════════════════════════════════════ */

.login-page {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 100px 20px 60px;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: linear-gradient(165deg, rgba(255,255,255,.04), transparent 55%), var(--card);
  border: 1px solid rgba(255,184,0,.15);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 24px 64px rgba(0,0,0,.5), 0 0 0 1px rgba(255,184,0,.05);
  position: relative;
  overflow: hidden;
}

/* Top accent line */
.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--r3), transparent);
  background-size: 200% auto;
  animation: shimmer 4s linear infinite;
  box-shadow: 0 0 12px rgba(255,184,0,.3);
}

/* Brand */
.login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  justify-content: center;
}

.login-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #fff;
  box-shadow: none;
}

.login-brand-text {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--tx);
}

.login-brand-text span {
  color: var(--r3);
}

/* Title */
.login-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--tx);
  margin: 0 0 4px;
  text-align: center;
  letter-spacing: -0.5px;
}

.login-sub {
  font-size: 13px;
  color: var(--tx3);
  text-align: center;
  margin: 0 0 24px;
}

/* Error */
.login-error {
  background: rgba(231,76,60,.1);
  border: 1px solid rgba(231,76,60,.25);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: #ff6b6b;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

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

.login-field label {
  font-size: 11px;
  font-weight: 600;
  color: var(--tx3);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.login-field input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,184,0,.15);
  border-radius: 10px;
  color: var(--tx);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}

.login-field input:focus {
  border-color: rgba(255,184,0,.5);
  box-shadow: 0 0 0 3px rgba(255,184,0,.12);
}

.login-field input::placeholder {
  color: var(--tx3);
}

/* Password wrap */
.login-pass-wrap {
  position: relative;
}

.login-pass-wrap input {
  padding-right: 44px;
}

.login-pass-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--tx3);
  padding: 4px;
  transition: color .2s;
}

.login-pass-eye:hover {
  color: var(--r3);
}

/* Submit button */
.login-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--r3), var(--r2));
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-heading);
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all .25s;
  box-shadow: 0 4px 20px rgba(255,184,0,.3);
  margin-top: 4px;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,184,0,.45);
}

.login-btn--ghost {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,184,0,.15);
  box-shadow: none;
  font-size: 13px;
  padding: 10px;
}

.login-btn--ghost:hover {
  background: rgba(255,184,0,.08);
  border-color: rgba(255,184,0,.3);
  box-shadow: 0 4px 16px rgba(255,184,0,.15);
}

/* Divider */
.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--tx3);
  font-size: 12px;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.08);
}

/* Forgot password */
.login-forgot-toggle {
  width: 100%;
  background: none;
  border: none;
  color: var(--tx3);
  font-size: 13px;
  cursor: pointer;
  padding: 8px;
  transition: color .2s;
  font-family: inherit;
}

.login-forgot-toggle:hover {
  color: var(--r3);
}

.login-forgot-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease), opacity .3s;
  opacity: 0;
}

.login-forgot-panel.open {
  max-height: 250px;
  opacity: 1;
}

.login-forgot-desc {
  font-size: 12px;
  color: var(--tx3);
  line-height: 1.6;
  margin: 12px 0 8px;
}

/* Footer link */
.login-footer-link {
  text-align: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.login-footer-link a {
  font-size: 12px;
  color: var(--tx3);
  text-decoration: none;
  transition: color .2s;
}

.login-footer-link a:hover {
  color: var(--r3);
}

/* Responsive */
@media (max-width: 480px) {
  .login-page {
    padding: 80px 16px 40px;
  }
  .login-card {
    padding: 24px 20px;
    border-radius: 16px;
  }
}
