/* === AUTH PAGES === */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.auth-nav {
  padding: 20px 32px;
  border-bottom: 1px solid var(--border);
}

.auth-logo {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
}

.auth-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}

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

.auth-header h1 {
  font-family: 'Fraunces', serif;
  font-size: 36px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
}

.auth-header p {
  color: var(--fg-2);
  font-size: 16px;
}

.role-toggle {
  display: flex;
  gap: 4px;
  background: var(--bg-2);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 32px;
  border: 1px solid var(--border);
}

.role-btn {
  padding: 10px 28px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--fg-3);
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.role-btn.active {
  background: var(--amber);
  color: #000;
}

.role-btn:hover:not(.active) {
  color: var(--fg);
}

.auth-form {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

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

.form-group input {
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-dim);
}

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

.form-error {
  color: #ef4444;
  font-size: 14px;
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  display: none;
}

.auth-submit {
  padding: 14px 24px;
  background: var(--amber);
  color: #000;
  border: none;
  border-radius: var(--radius);
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  margin-top: 8px;
}

.auth-submit:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
}

.auth-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.auth-footer {
  margin-top: 24px;
  text-align: center;
  color: var(--fg-3);
  font-size: 14px;
}

.auth-footer a {
  color: var(--amber);
  text-decoration: none;
  font-weight: 500;
}

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

.auth-success {
  text-align: center;
  max-width: 400px;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: var(--amber-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.success-icon svg {
  width: 32px;
  height: 32px;
  color: var(--amber);
}

.auth-success h2 {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 12px;
}

.auth-success p {
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.6;
}

.auth-success strong {
  color: var(--fg);
}

.resend-note {
  margin-top: 16px;
  color: var(--fg-3) !important;
  font-size: 14px !important;
}

.link-btn {
  background: none;
  border: none;
  color: var(--amber);
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.link-btn:hover {
  opacity: 0.8;
}