/* ═══════════════════════════════════════════════════════════
   pages/login.css — Login / cadastro
   Dolce Olive — estilos Desktop (padrão)

   Nota: esta página usa uma navbar simplificada própria (apenas
   logo + link "voltar"), diferente da navbar padrão em nav.css.
═══════════════════════════════════════════════════════════ */

body { background: var(--primary); color: var(--cream); min-height: 100vh; }

::-webkit-scrollbar-thumb { background: var(--olive); }

/* ── NAV (própria da página) ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h); display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  background: rgba(23,2,64,0.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-logo { font-family: 'Cinzel Decorative', serif; font-size: 18px; color: #EFE7FF; letter-spacing: 2px; text-decoration: none; }
.nav-back { color: var(--muted); text-decoration: none; font-size: 13px; letter-spacing: 1px; font-family: 'Cinzel', serif; transition: color .2s; }
.nav-back:hover { color: var(--olive); }

/* ── LAYOUT ── */
.page-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }

/* ── LADO ESQUERDO (decorativo) ── */
.side-deco {
  background: linear-gradient(160deg, #1e0352 0%, #0d0120 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 80px 60px; position: relative; overflow: hidden;
}
.side-deco::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 60%, rgba(169,179,136,.08) 0%, transparent 70%);
}
.deco-logo {
  font-family: 'Cinzel Decorative', serif; font-size: clamp(22px,3vw,34px);
  color: #EFE7FF; letter-spacing: 3px; text-align: center; line-height: 1.5;
  position: relative; margin-bottom: 40px;
}
.deco-tagline {
  font-size: 14px; color: rgba(255,255,255,.45); text-align: center;
  line-height: 1.8; max-width: 320px; position: relative;
}
.deco-rule { width: 48px; height: 1px; background: var(--olive); opacity: .5; margin: 24px auto; position: relative; }
.deco-values { display: flex; flex-direction: column; gap: 16px; position: relative; margin-top: 16px; }
.deco-val { display: flex; align-items: center; gap: 12px; font-size: 13px; color: rgba(255,255,255,.5); letter-spacing: .5px; }
.deco-val-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--olive); opacity: .6; flex-shrink: 0; }

/* ── LADO DIREITO (formulário) ── */
.side-form {
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--nav-h) + 40px) 60px 60px;
  background: rgba(255,255,255,.02);
}
.form-box { width: 100%; max-width: 420px; }

/* ── TABS ── */
.tabs { display: flex; margin-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.tab-btn {
  flex: 1; background: none; border: none; cursor: pointer;
  font-family: 'Cinzel', serif; font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); padding: 14px 0;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .2s, border-color .2s;
}
.tab-btn.active { color: var(--olive); border-bottom-color: var(--olive); }

/* ── CAMPO ── */
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted); font-family: 'Cinzel', serif; margin-bottom: 7px;
}
.field input {
  width: 100%; background: rgba(255,255,255,.05);
  border: 1.5px solid rgba(255,255,255,.1); border-radius: var(--radius);
  padding: 12px 14px; color: #EFE7FF; font-family: 'Lato', sans-serif; font-size: 14px;
  transition: border-color .2s;
}
.field input:focus { outline: none; border-color: var(--olive); }
.field input::placeholder { color: rgba(255,255,255,.25); }
.field input.error { border-color: var(--error); }

/* ── Campos de senha com olho ── */
.pw-wrap { position: relative; }
.pw-wrap input { width: 100%; padding-right: 44px; }
.pw-eye {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.icon-eye { width: 18px; height: 18px; }
.pw-eye svg { color: rgba(255,255,255,.55); transition: color .2s ease; }
.pw-eye:hover svg { color: rgba(255,255,255,.9); }
.pw-eye.visible svg { color: var(--olive); }
.pw-eye:hover { opacity: 1; }
.pw-eye.visible { opacity: 1; }

/* ── BOTÕES ── */
.btn-primary {
  width: 100%; background: var(--secondary); border: none; border-radius: var(--radius);
  padding: 14px; font-family: 'Lato', sans-serif; font-size: 13px;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--primary); cursor: pointer; font-weight: 700;
  transition: opacity .2s; margin-bottom: 12px;
}
.btn-primary:hover { opacity: .88; }
.btn-primary:disabled { opacity: .35; cursor: not-allowed; }

.btn-google {
  width: 100%; background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.12); border-radius: var(--radius);
  padding: 13px; font-family: 'Lato', sans-serif; font-size: 13px;
  letter-spacing: 1px; text-transform: uppercase;
  color: #EFE7FF; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background .2s, border-color .2s;
}
.btn-google:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); }
.btn-google svg { width: 18px; height: 18px; flex-shrink: 0; }

.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: rgba(255,255,255,.2); font-size: 12px; letter-spacing: 1px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.08); }

/* ── FEEDBACK ── */
.feedback { padding: 10px 14px; border-radius: var(--radius); font-size: 13px; line-height: 1.5; margin-bottom: 16px; display: none; }
.feedback.error   { background: rgba(224,92,106,.12); border: 1px solid rgba(224,92,106,.3); color: var(--error); display: block; }
.feedback.success { background: rgba(109,194,109,.1);  border: 1px solid rgba(109,194,109,.25); color: var(--success); display: block; }

/* ── LINK ESQUECEU SENHA ── */
.link-esqueceu { text-align: right; margin-top: -10px; margin-bottom: 18px; }
.link-esqueceu button {
  background: none; border: none; cursor: pointer;
  font-size: 12px; color: var(--muted); font-family: 'Lato', sans-serif;
  letter-spacing: .5px; transition: color .2s;
}
.link-esqueceu button:hover { color: var(--olive); }

/* ── SPINNER ── */
.spinner {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid rgba(23,2,64,.4); border-top-color: var(--primary);
  border-radius: 50%; animation: spin .6s linear infinite;
  vertical-align: middle; margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }
