/* Authentication Pages Styles */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.auth-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60rem 60rem at 65% 35%, rgba(196, 126, 66, 0.12), transparent 60%),
              radial-gradient(32rem 32rem at 20% 70%, rgba(196, 126, 66, 0.10), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.auth-container {
  width: 100%;
  max-width: 440px;
  padding: 48px 40px;
  background: linear-gradient(165deg, rgba(249, 240, 231, 0.95) 0%, rgba(255, 255, 255, 0.98) 60%, rgba(255, 255, 255, 0.9) 100%);
  border-radius: 20px;
  border: 1px solid rgba(196, 126, 66, 0.2);
  box-shadow: 0 20px 40px rgba(193, 168, 139, 0.25),
              0 1px 3px rgba(196, 126, 66, 0.15);
  position: relative;
  z-index: 1;
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-header .brand-lockup {
  justify-content: center;
  margin-bottom: 24px;
}

.auth-header .brand-icon {
  width: 72px;
  height: 72px;
}

.auth-header .brand-title {
  font-size: clamp(1.5rem, 2vw, 1.75rem);
}

.auth-header .brand-subtitle {
  font-size: 12px;
  color: var(--muted);
}

.auth-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.8vw, 2.25rem);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--text);
}

.auth-subtitle {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.auth-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 6px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-error {
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #dc2626;
  font-size: 14px;
  font-weight: 500;
}

.auth-success {
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  font-size: 14px;
  font-weight: 500;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.form-group input {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 15px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-group input::placeholder {
  color: var(--muted);
}

.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper input {
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.password-toggle:hover {
  color: var(--text);
}

.form-hint {
  color: var(--muted);
  font-size: 12px;
  margin-top: -4px;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent);
}

.checkbox-label a {
  color: var(--accent);
  text-decoration: none;
}

.checkbox-label a:hover {
  text-decoration: underline;
}

.auth-link {
  color: #8B5729; /* Darker brown for guaranteed WCAG 2 AA contrast (7:1 on white, 6:1 on ivory) */
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.auth-link:hover {
  color: #6B4520; /* Even darker on hover for better contrast */
  text-decoration: underline;
}

.btn--full {
  width: 100%;
}

.btn--large {
  padding: 14px 24px;
  font-size: 15px;
}

.auth-footer {
  margin-top: 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-footer-text {
  color: #1e293b; /* Dark text for good contrast on light background */
  font-size: 14px;
  margin: 0;
}

.auth-footer-text .auth-link {
  color: #000000 !important; /* Pure black for maximum contrast guarantee (21:1 on white) */
}

/* Responsive */
@media (max-width: 480px) {
  .auth-container {
    padding: 32px 24px;
  }

  .auth-title {
    font-size: 24px;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
  }
}

