/* =============================================
   AUTH PAGES — Shared styles for login.html and register.html
   ============================================= */

.auth-page-bg {
  min-height: 100vh;
  background: linear-gradient(160deg, #0B1F3A 0%, #142033 55%, #0B1F3A 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 1rem 2rem;
}

.auth-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.auth-logo-img {
  height: 3rem;
  width: auto;
  filter: brightness(0) invert(1);
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color var(--transition);
}

.auth-back-link:hover {
  color: rgba(255, 255, 255, 0.85);
}

.auth-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  text-align: center;
}

.auth-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth-field {
  margin-bottom: 1.125rem;
}

.auth-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}

.auth-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--text-primary);
  background: var(--surface-1);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  box-sizing: border-box;
}

.auth-input:focus {
  border-color: #C8A96A;
  box-shadow: 0 0 0 3px rgba(200, 169, 106, 0.15);
  background: #ffffff;
}

.auth-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0B1F3A;
  background: linear-gradient(135deg, #C8A96A, #B8955A);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 2px 10px rgba(200, 169, 106, 0.3);
  margin-top: 0.5rem;
}

.auth-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(200, 169, 106, 0.45);
}

.auth-btn:active {
  transform: translateY(0);
}

.auth-notice {
  display: none;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: center;
}

.auth-notice.info {
  background: #EFF6FF;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.auth-notice.success {
  background: #F0FDF4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.auth-notice.error {
  background: #FEF2F2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-divider span {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.auth-footer-links {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.auth-footer-links a {
  color: #C8A96A;
  font-weight: 600;
  text-decoration: none;
}

.auth-footer-links a:hover {
  text-decoration: underline;
}
