/* ============================================================
   NOVO OLHAR — auth.css
   Layout e estilos das páginas de login / cadastro
   ============================================================ */

.page-auth {
  min-height: 100vh;
  background: var(--color-bg);
}

/* Split layout */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ── Painel visual (esquerdo) ── */
.auth-panel--visual {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.auth-panel__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 40%, rgba(245,166,35,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 70% 80%, rgba(245,166,35,0.06) 0%, transparent 60%),
    linear-gradient(160deg, #0a0a0c 0%, #0f0f16 100%);
}
/* Padrão de grade no fundo */
.auth-panel__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
}
.auth-panel__content {
  position: relative;
  z-index: 1;
  padding: 48px;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: var(--space-7);
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
}
.auth-logo__mark {
  width: 36px; height: 36px;
  background: var(--color-accent);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.auth-logo__mark svg { width: 22px; height: 22px; fill: #0a0a0c; }
.auth-logo__text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}
.auth-logo__text span { color: var(--color-accent); }

.auth-panel__headline { margin-top: auto; }
.auth-panel__tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(245,166,35,0.1);
  border: 1px solid rgba(245,166,35,0.2);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}
.auth-panel__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
}
.auth-panel__sub {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 320px;
}

.auth-panel__stats {
  display: flex;
  gap: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}
.auth-stat { display: flex; flex-direction: column; gap: 2px; }
.auth-stat__num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--color-accent);
}
.auth-stat__label { font-size: 12px; color: var(--color-text-muted); }

/* ── Painel formulário (direito) ── */
.auth-panel--form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-7) var(--space-6);
  background: var(--color-surface);
  border-left: 1px solid var(--color-border);
}
.auth-form-wrap {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Tabs */
.auth-tabs {
  display: flex;
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 4px;
}
.auth-tab {
  flex: 1;
  text-align: center;
  padding: 8px;
  border-radius: calc(var(--radius-md) - 2px);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: all var(--transition-fast);
}
.auth-tab.active {
  background: var(--color-surface-3);
  color: var(--color-text-primary);
}
.auth-tab:hover:not(.active) { color: var(--color-text-secondary); }

/* Bonus badge */
.auth-bonus-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 14px;
  background: rgba(245,166,35,0.08);
  border: 1px solid rgba(245,166,35,0.2);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--color-text-secondary);
}
.auth-bonus-badge strong { color: var(--color-accent); }
.auth-bonus-badge span   { font-size: 18px; }

/* Alerts */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.5;
}
.alert--error {
  background: rgba(235,68,90,0.1);
  border: 1px solid rgba(235,68,90,0.25);
  color: #eb445a;
}
.alert--success {
  background: rgba(45,211,111,0.1);
  border: 1px solid rgba(45,211,111,0.25);
  color: #2dd36f;
}

/* Google button */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  width: 100%;
  padding: 11px var(--space-4);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  text-decoration: none;
  transition: all var(--transition-fast);
}
.btn-google:hover {
  background: var(--color-surface-3);
  border-color: var(--color-border-hover);
  transform: translateY(-1px);
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-muted);
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* Form */
.auth-form { display: flex; flex-direction: column; gap: var(--space-4); }
.form-group { display: flex; flex-direction: column; gap: var(--space-2); }
.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
}
.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.form-input {
  width: 100%;
  height: 42px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0 var(--space-4);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}
.form-input::placeholder { color: var(--color-text-muted); }
.form-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-dim);
}
.form-input-wrap { position: relative; }
.form-input-wrap .form-input { padding-right: 44px; }
.form-eye {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
  padding: 4px;
}
.form-eye:hover { color: var(--color-text-secondary); }

/* Força da senha */
.password-strength {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: 4px;
}
.strength-bar {
  flex: 1;
  height: 3px;
  background: var(--color-surface-3);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.strength-fill {
  height: 100%;
  width: 0;
  border-radius: var(--radius-full);
  transition: width 0.3s ease, background 0.3s ease;
}
.strength-label { font-size: 11px; color: var(--color-text-muted); min-width: 50px; }

/* Checkbox termos */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: 13px;
  color: var(--color-text-secondary);
  cursor: pointer;
  line-height: 1.5;
}
.form-check input[type="checkbox"] { margin-top: 2px; accent-color: var(--color-accent); }

/* Submit */
.btn-auth {
  width: 100%;
  justify-content: center;
  padding: 12px var(--space-4);
  font-size: 15px;
}

/* Links inline */
.auth-link {
  background: none; border: none;
  color: var(--color-accent);
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}
.auth-link:hover { color: #f7b840; }

.auth-footer-link {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* Modal recuperar senha */
.modal--sm { max-width: 420px; }

/* ── Responsivo ── */
@media (max-width: 768px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-panel--visual { display: none; }
  .auth-panel--form {
    min-height: 100vh;
    padding: var(--space-6) var(--space-5);
    border-left: none;
  }
}
