/* Auth pages — herda tokens globais de styles.css */
.auth-page {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.auth-page .auth-left {
  background: var(--bg);
}

.auth-page .auth-right {
  background: var(--ink);
}

.auth-page .auth-right::before {
  background: radial-gradient(circle, color-mix(in oklch, var(--primary) 35%, transparent), transparent 60%);
}

.auth-page .form-input {
  border-radius: 12px;
}

.auth-page .auth-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-family: Geist, -apple-system, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 auto;
}

.auth-page .auth-brand-o {
  position: relative;
  display: inline-block;
}

.auth-page .auth-brand-o-dot {
  position: absolute;
  top: -3px;
  left: 50%;
  width: 4px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 9999px;
  background: var(--primary);
  box-shadow: 0 0 0 2px var(--bg);
}

.auth-page .auth-brand-o-ring {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 8px;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 9999px;
  border: 1px solid color-mix(in oklch, var(--primary) 30%, transparent);
}

.auth-page .auth-subtitle {
  color: var(--text2);
  text-align: center;
  margin-top: 10px;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.auth-page .auth-form-inner {
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.auth-page .auth-form {
  margin-top: 32px;
  text-align: left;
}

.auth-page .form-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--text2);
  font-size: 14px;
}

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

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

.auth-page .password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text2);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.auth-page .password-toggle:hover {
  color: var(--ink);
  background: var(--primary-soft);
}

.auth-page .password-toggle i,
.auth-page .password-toggle svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.auth-page .link-muted {
  color: var(--text2);
  font-size: 14px;
}

.auth-page .link-accent {
  color: var(--primary);
  font-weight: 500;
  font-size: 14px;
}

.auth-page .link-accent:hover {
  text-decoration: underline;
}

.auth-page .checkbox-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-page .checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text2);
  cursor: pointer;
  user-select: none;
}

.auth-page .checkbox-label input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.auth-page .auth-footer-text {
  text-align: center;
  font-size: 14px;
  color: var(--text2);
  margin-top: 20px;
}

.auth-page .feature-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
  text-align: left;
}

.auth-page .auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  margin-bottom: 20px;
  transition: color 0.15s;
}

.auth-page .auth-back-link:hover {
  color: var(--ink);
}

.auth-page .auth-back-link svg {
  width: 14px;
  height: 14px;
}

.auth-page .auth-field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}

.auth-page .auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: 9999px;
  background: var(--primary-soft);
  border: 1px solid color-mix(in oklch, var(--primary) 18%, transparent);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.auth-page .auth-pill-row {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.auth-page .auth-pill-row--after-brand {
  margin-top: 4px;
  margin-bottom: 0;
}

.auth-page .auth-pill-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.auth-page .link-accent.is-disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}

.auth-page .auth-turnstile-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 12px 0 4px;
}

.auth-page .auth-turnstile-wrap .cf-turnstile {
  display: inline-block;
}

.auth-page .forgot-open-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  cursor: pointer;
  text-align: right;
}

.auth-page .forgot-open-btn:hover {
  text-decoration: underline;
}

.auth-page .btn-auth-primary {
  border-radius: 12px;
}

.auth-page .btn-auth-outline {
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.auth-page .field-hint {
  display: block;
  font-size: 12px;
  color: var(--text2);
  margin-top: 6px;
  line-height: 1.4;
}

.auth-page .pwd-meter {
  margin-top: 8px;
  height: 4px;
  background: var(--border-soft);
  border-radius: 9999px;
  overflow: hidden;
}

.auth-page .pwd-meter__bar {
  height: 100%;
  width: 0%;
  transition: width 0.2s ease, background-color 0.2s ease;
  background: #ef4444;
  border-radius: 9999px;
}

.auth-page .pwd-meter__bar.is-weak { width: 25%; background: #ef4444; }
.auth-page .pwd-meter__bar.is-fair { width: 50%; background: #f59e0b; }
.auth-page .pwd-meter__bar.is-good { width: 75%; background: var(--primary); }
.auth-page .pwd-meter__bar.is-strong { width: 100%; background: #10b981; }

.auth-page .pwd-meter__label {
  display: block;
  font-size: 11px;
  color: var(--text2);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

/* Forgot password modal */
.auth-page .forgot-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s;
}

.auth-page .forgot-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.auth-page .forgot-modal-backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in oklch, var(--ink) 55%, transparent);
  backdrop-filter: blur(4px);
}

.auth-page .forgot-modal {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px -20px color-mix(in oklch, var(--ink) 25%, transparent);
  padding: 28px 24px 24px;
  max-height: min(90vh, 640px);
  overflow-y: auto;
  transform: translateY(16px) scale(0.96);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

.auth-page .forgot-modal-overlay.is-open .forgot-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .auth-page .forgot-modal-overlay,
  .auth-page .forgot-modal {
    transition-duration: 0.01ms !important;
  }

  .auth-page .forgot-modal-overlay:not(.is-open) .forgot-modal,
  .auth-page .forgot-modal-overlay.is-open .forgot-modal {
    transform: none;
  }
}

.auth-page .forgot-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--primary-soft);
  border-radius: 8px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--text2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-page .forgot-modal-close:hover {
  background: var(--border-soft);
  color: var(--ink);
}

.auth-page .forgot-modal h2 {
  font-family: Geist, -apple-system, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 32px 12px 0;
  line-height: 1.3;
}

.auth-page .forgot-modal-hint {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.55;
  margin: 0 0 20px;
}

.auth-page .forgot-modal .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.auth-page .forgot-modal .form-group {
  margin-bottom: 16px;
}

.auth-page .forgot-modal input.form-input {
  width: 100%;
  border-radius: 12px;
}

.auth-page .forgot-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.auth-page .forgot-modal-actions .btn-link {
  background: none;
  border: none;
  color: var(--text2);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px 0;
  align-self: center;
}
