/* ============================================================
   As telas de entrada da loja (entrar, criar conta, recuperar o acesso, o primeiro acesso):
   o cartão no meio, com as cores do layout da loja. Na loja pública, dentro do layout dela;
   na privada, a tela sozinha (auth/_isolada.html). Vieram do admin.css, que só elas usavam.
   ============================================================ */

/* ---------- A tela sozinha (loja privada) ---------- */
.auth-page {
  min-height: 100vh; margin: 0;
  background:
    radial-gradient(120% 90% at 50% -10%, var(--primary-l) 0%, transparent 55%),
    var(--surface);
}
.auth-isolada { max-width: 440px; margin: 0 auto; padding: 56px 20px 40px; }
.auth-marca {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-bottom: 8px; color: var(--text); font-weight: 700; font-size: 1.3rem; text-decoration: none;
}
.brand__logo { height: 46px; width: auto; display: block; }
.brand__badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 13px;
  background: linear-gradient(135deg, var(--primary), var(--primary-d));
  color: #fff; font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em;
  box-shadow: var(--shadow-sm);
}
.auth-tagline { text-align: center; color: var(--muted); font-size: .88rem; line-height: 1.5; margin: 0 0 22px; }

/* ---------- O cartão ---------- */
.auth-wrap { max-width: 440px; margin: 0 auto; }
.auth-wrap--loja { padding: 32px 0 64px; }
.auth-card {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 30px; box-shadow: var(--shadow);
}
.auth-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-d));
}
.auth-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-l); color: var(--primary-d);
  font-size: .72rem; font-weight: 700; padding: 5px 11px; border-radius: 999px;
  margin-bottom: 12px;
}
.auth-title { margin: 0 0 6px; font-size: 1.55rem; line-height: 1.2; }
.auth-sub { margin: 0 0 20px; line-height: 1.5; }
.auth-alt { text-align: center; margin: 18px 0 0; color: var(--muted); line-height: 1.6; }
.auth-alt a { color: var(--primary); font-weight: 600; }
.auth-foot { text-align: center; margin-top: 18px; font-size: .82rem; }

/* ---------- Os campos ---------- */
.form .field { margin-bottom: 14px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.field input, .field select {
  width: 100%; padding: 12px 14px; font-size: 1rem; color: var(--text); font-family: inherit;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; outline: none;
}
.field input:focus, .field select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-l); outline: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Os avisos ---------- */
.alert { padding: 11px 14px; border-radius: 12px; font-size: .9rem; margin-bottom: 14px; border: 1px solid transparent; }
.alert--ok   { background: #e9f7ee; color: #14773b; border-color: #bfe6cd; }
.alert--info { background: var(--primary-l); color: var(--primary-d); border-color: var(--border); }
.alert--erro { background: #fdecec; color: #b3261e; border-color: #f6c9c6; }

/* ---------- No tema exclusivo: o fundo do filme, o degradê e os títulos do tema ---------- */
.otoo.auth-page { background: #f6f1ee; }
html[data-theme="dark"] .otoo.auth-page { background: var(--bg); }
.otoo .auth-marca .otoo-logo { width: 150px; height: 42px; background-position: center; }
.otoo .auth-card { border-radius: var(--r-lg); }
.otoo .auth-card::before { background: var(--otoo-grad); }
.otoo .auth-chip { background: var(--primary-l); color: var(--primary); }
.otoo .auth-title { font-size: 1.8rem; font-weight: 700; letter-spacing: -.03em; }
.otoo .auth-alt a { color: var(--text); text-decoration: underline; text-decoration-color: var(--otoo-2); text-underline-offset: 3px; }
.otoo .field input:focus, .otoo .field select:focus { border-color: var(--otoo-2); box-shadow: 0 0 0 3px rgba(254, 80, 32, .14); }
.otoo .auth-card .btn--primary { border-radius: var(--r-pill); padding-top: 14px; padding-bottom: 14px; }
.otoo-entrar { padding-top: 8px; }

@media (max-width: 520px) {
  .auth-card { padding: 24px 20px; }
  .auth-isolada { padding-top: 40px; }
}
