/* =====================================================================
   SelectImob One — Auth (login / esqueci-senha / convite / redefinir).
   Tela standalone (SEM o trilho/topbar do shell — plano 2026-07-20-mvp-
   webgis-captador.md §4/§11/§13: "o login também no design, tela
   estilizada, mas fora da chrome do shell"). Usa SÓ var(--token) de
   tokens.css (não editado por este arquivo) — nunca um hex solto, mesma
   regra do shell.css.
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body.auth-body{
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(1100px 520px at 12% -10%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%),
    radial-gradient(900px 460px at 110% 10%, color-mix(in srgb, var(--navy) 55%, transparent), transparent 60%),
    var(--bg);
  color: var(--ink);
  font: 400 14px/1.5 var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

.auth-shell{
  width: 100%;
  max-width: 408px;
}

.auth-card{
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 34px 32px 28px;
  box-shadow: 0 24px 60px rgba(0,0,0,.28), 0 2px 6px rgba(0,0,0,.10);
}

.auth-brand{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.auth-mk{
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .02em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 6px 16px rgba(0,44,100,.35);
}

.auth-brand-name{
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -.01em;
}

.auth-brand-name span{ color: var(--accent-ink); font-weight: 800; }

.auth-head{ margin: 0 0 22px; }

.auth-title{
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
}

.auth-sub{
  margin: 0;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
}

.auth-form{ display: flex; flex-direction: column; gap: 16px; }

.auth-field{ display: flex; flex-direction: column; gap: 6px; }

.auth-label{
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.auth-row-between{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.auth-input{
  height: 42px;
  padding: 0 13px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surf-2);
  color: var(--ink);
  font: 400 14px/1 var(--font-ui);
  outline: 0;
  transition: border-color .12s, box-shadow .12s, background .12s;
}

.auth-input::placeholder{ color: var(--muted); }

.auth-input:focus{
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
  background: var(--surf);
}

.auth-input[aria-invalid="true"]{
  border-color: #e5484d;
}

.auth-field-error{
  font-size: 12px;
  color: #ff8a8a;
}
:root[data-theme="light"] .auth-field-error{ color: #c0281f; }

.auth-btn{
  width: 100%;
  height: 44px;
  border-radius: 9px;
  border: 0;
  font: 700 14px/1 var(--font-ui);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;            /* o botão Google é <a> — sem sublinhado de link */
  transition: filter .12s, transform .05s, box-shadow .12s;
}
.auth-btn:hover{ text-decoration: none; }

.auth-btn:active{ transform: translateY(1px); }

.auth-btn-primary{
  background: var(--accent);
  color: #1a1000;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 35%, transparent);
}

.auth-btn-primary:hover{ filter: brightness(1.06); }

.auth-btn-primary:disabled{
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
}

.auth-btn-google{
  background: var(--surf-2);
  color: var(--ink);
  border: 1px solid var(--line);
}

.auth-btn-google:hover{ background: var(--sel); border-color: var(--line-2); }

.auth-divider{
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.auth-divider::before, .auth-divider::after{
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-link{
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 12.5px;
}

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

.auth-foot{
  margin-top: 22px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-2);
}

.auth-back{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 18px;
}

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

.auth-banner{
  border-radius: 9px;
  padding: 10px 13px;
  font-size: 12.5px;
  margin-bottom: 18px;
  line-height: 1.5;
}

.auth-banner-error{
  background: color-mix(in srgb, #e5484d 14%, transparent);
  border: 1px solid color-mix(in srgb, #e5484d 40%, transparent);
  color: #ffb4b4;
}
:root[data-theme="light"] .auth-banner-error{ color: #8f1f1f; }

.auth-banner-status{
  background: color-mix(in srgb, #22c55e 14%, transparent);
  border: 1px solid color-mix(in srgb, #22c55e 40%, transparent);
  color: #86e6ac;
}
:root[data-theme="light"] .auth-banner-status{ color: #14612f; }

.auth-outer-foot{
  margin-top: 22px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

/* Botão "ver senha" (olho) — injetado pelo layout auth em todo input password.
   O input volta a ficar de FORA A FORA (o embrulho tirava o width:100% que o
   flex do .auth-field dava); o olho fica DENTRO, à direita, e o padding-right
   reserva o espaço pras bolinhas não passarem por baixo do botão. */
.auth-eye-wrap{ position:relative; display:block; width:100%; }
.auth-eye-wrap .auth-input{ width:100%; box-sizing:border-box; padding-right:44px; }
.auth-eye{ position:absolute; top:0; bottom:0; right:6px; margin:auto 0;
  width:32px; height:32px; display:grid; place-items:center; padding:0;
  background:transparent; border:none; cursor:pointer; color:var(--muted); border-radius:7px; }
.auth-eye:hover{ color:var(--ink); background:var(--sel); }
.auth-eye svg{ width:18px; height:18px; }
.auth-eye.on{ color:var(--accent-ink); }

/* Checklist das regras de senha (invite/reset) — marca ✓ ao vivo */
.auth-rules{ list-style:none; margin:-2px 0 2px; padding:0; display:flex; flex-direction:column; gap:7px; }
.auth-rules li{ display:flex; align-items:center; gap:9px; font-size:12.5px; color:var(--muted); transition:color .12s; }
.auth-rules li.ok{ color:var(--ink); }
.auth-rule-ic{ width:17px; height:17px; flex:0 0 17px; border-radius:50%; border:1.5px solid var(--line);
  display:grid; place-items:center; background:transparent; transition:background .12s,border-color .12s; }
.auth-rule-ic svg{ width:10px; height:10px; color:#0a1c33; opacity:0; transition:opacity .12s; }
.auth-rules li.ok .auth-rule-ic{ background:#22c55e; border-color:#22c55e; }
.auth-rules li.ok .auth-rule-ic svg{ opacity:1; }

/* Campo de "usuário" (e-mail) escondido só pro gerenciador de senha do
   navegador associar a nova senha à conta certa — visually-hidden (fica no
   DOM e legível pro autofill, mas fora da tela; `hidden`/`display:none`
   alguns gerenciadores ignoram). */
.auth-username-off{ position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
