/**
 * Split-panel auth pages (admin login, forgot/reset password).
 */

.auth-page,
.auth-page * {
  box-sizing: border-box;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.auth-page .login-left {
  width: 45%;
  background: linear-gradient(160deg, #1a2e1a 0%, #2d4a2d 50%, #1f3d1f 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 52px;
  position: relative;
  overflow: hidden;
}

.auth-page .login-left::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}

.auth-page .login-left::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 260px;
  height: 260px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
}

.auth-page .brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.auth-page .brand-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.auth-page .brand-name {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
}

.auth-page .left-body {
  position: relative;
  z-index: 1;
}

.auth-page .left-headline {
  color: #fff;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.auth-page .left-headline span {
  color: #86efac;
}

.auth-page .left-sub {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 40px;
}

.auth-page .left-features {
  list-style: none;
  margin: 0;
  padding: 0;
}

.auth-page .left-features li {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.auth-page .left-features li::before {
  content: '✓';
  width: 22px;
  height: 22px;
  background: rgba(134, 239, 172, 0.2);
  color: #86efac;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.auth-page .left-footer {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.78rem;
  position: relative;
  z-index: 1;
}

.auth-page .login-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 40px;
  background: #fff;
}

.auth-page .login-box {
  width: 100%;
  max-width: 400px;
}

.auth-page .login-box h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 6px;
  letter-spacing: -0.4px;
}

.auth-page .login-box .subtitle {
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.auth-page .form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
  display: block;
  margin-top: 16px;
}

.auth-page .form-control {
  width: 100%;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 0.9rem;
  color: #111827;
  background: #fafafa;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-page .form-control:focus {
  border-color: #2d4a2d;
  box-shadow: 0 0 0 3px rgba(45, 74, 45, 0.1);
  background: #fff;
  outline: none;
}

.auth-page .btn-signin {
  width: 100%;
  padding: 12px;
  background: #1f3d1f;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 24px;
  transition: background 0.2s;
  display: block;
  text-align: center;
}

.auth-page .btn-signin:hover {
  background: #2d4a2d;
}

.auth-page .divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 20px;
  color: #9ca3af;
  font-size: 0.8rem;
}

.auth-page .divider::before,
.auth-page .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.auth-page .register-prompt {
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
}

.auth-page .register-prompt a {
  color: #1f3d1f;
  font-weight: 600;
  text-decoration: none;
}

.auth-page .register-prompt a:hover {
  text-decoration: underline;
}

.auth-page .login-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.auth-page .login-links a,
.auth-page .back-login {
  font-size: 0.8rem;
  color: #9ca3af;
  text-decoration: none;
}

.auth-page .login-links a:hover,
.auth-page .back-login:hover {
  color: #6b7280;
}

.auth-page .message.error,
.auth-page .flash-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.875rem;
  margin-bottom: 20px;
}

.auth-page .message.success,
.auth-page .flash-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.875rem;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .auth-page {
    flex-direction: column;
  }

  .auth-page .login-left {
    width: 100%;
    padding: 32px 28px;
    min-height: auto;
  }

  .auth-page .left-headline {
    font-size: 1.8rem;
  }

  .auth-page .left-features,
  .auth-page .left-sub {
    display: none;
  }

  .auth-page .login-right {
    padding: 36px 24px;
  }
}
