/* EmailSend — telas de autenticação (login / cadastro). Vanilla, dark-mode, marca. */
:root {
  --ink: #0b1220;
  --ink-soft: #3d4860;
  --muted: #6b7690;
  --line: #e7eaf0;
  --bg: #ffffff;
  --bg-2: #f6f8fc;
  --accent: #0656e9;
  --accent-strong: #0a45c4;
  --accent-2: #2bbffc;
  --ok: #16a34a;
  --err: #dc2626;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.08);
  --shadow-md: 0 10px 30px rgba(16,24,40,.08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eaf0fb; --ink-soft: #b7c2da; --muted: #8893ad; --line: #212a3f;
    --bg: #0a0f1c; --bg-2: #0e1525; --accent: #3f82ff; --accent-strong: #2f72f5; --accent-2: #46c6ff;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.3); --shadow-md: 0 10px 30px rgba(0,0,0,.4);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }

/* Layout de duas colunas */
.auth { min-height: 100dvh; display: grid; grid-template-columns: 1.05fr .95fr; }

/* Lado do formulário */
.auth-form { display: flex; flex-direction: column; padding: 32px 40px; }
.auth-top { }
.logo { display: inline-flex; align-items: center; font-weight: 800; font-size: 19px; letter-spacing: -.02em; color: var(--ink); }
.logo img { width: 28px; height: 28px; object-fit: contain; display: block; margin-right: 9px; }
.logo .wm { color: var(--accent); }
.auth-center { flex: 1; display: flex; align-items: center; justify-content: center; }
.card { width: 100%; max-width: 396px; }
.card h1 { font-size: 27px; letter-spacing: -.025em; margin: 0 0 6px; font-weight: 800; }
.card .sub { color: var(--muted); font-size: 15px; margin: 0 0 28px; }

.field { margin-bottom: 17px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
.field input {
  width: 100%; padding: 12px 14px; font-size: 15px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: var(--muted); }
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }

/* Senha com olhinho */
.pwd { position: relative; }
.pwd input { padding-right: 46px; }
.eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; display: grid; place-items: center;
  background: transparent; border: 0; border-radius: 8px; cursor: pointer; color: var(--muted);
  transition: color .15s, background .15s;
}
.eye:hover { color: var(--ink); background: var(--bg-2); }
.eye svg { width: 19px; height: 19px; }
.eye .off { display: none; }
.eye.is-on .on { display: none; }
.eye.is-on .off { display: block; }

.btn-sub {
  width: 100%; margin-top: 6px; padding: 13px 18px; font-size: 15.5px; font-weight: 700;
  color: #fff; background: var(--accent); border: 0; border-radius: var(--radius); cursor: pointer;
  box-shadow: var(--shadow-sm); transition: background .15s, transform .08s;
}
.btn-sub:hover { background: var(--accent-strong); }
.btn-sub:active { transform: translateY(1px); }
.btn-sub:disabled { opacity: .6; cursor: not-allowed; }

.switch { text-align: center; margin-top: 22px; font-size: 14.5px; color: var(--muted); }

.aviso { padding: 11px 14px; border-radius: var(--radius); font-size: 13.5px; margin-bottom: 18px; display: none; line-height: 1.45; }
.aviso.erro { display: block; background: color-mix(in srgb, var(--err) 10%, transparent); color: var(--err); border: 1px solid color-mix(in srgb, var(--err) 30%, transparent); }
.aviso.ok { display: block; background: color-mix(in srgb, var(--ok) 10%, transparent); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); }

.auth-foot { font-size: 12.5px; color: var(--muted); }

/* Lado da marca */
.auth-brand {
  position: relative; overflow: hidden; color: #fff; padding: 56px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(140deg, var(--accent) 0%, var(--accent) 38%, var(--accent-2) 100%);
}
.auth-brand::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 85% 10%, rgba(255,255,255,.18), transparent 55%); pointer-events: none; }
.brand-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; position: relative; }
.brand-logo .chip { width: 40px; height: 40px; border-radius: 11px; background: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.brand-logo .chip img { width: 26px; height: 26px; object-fit: contain; }
.brand-copy { position: relative; }
.brand-copy h2 { font-size: 34px; line-height: 1.12; letter-spacing: -.03em; margin: 0 0 18px; font-weight: 800; }
.brand-copy ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.brand-copy li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; color: rgba(255,255,255,.92); }
.brand-copy li .tick { width: 24px; height: 24px; flex: none; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; }
.brand-copy li .tick svg { width: 13px; height: 13px; }
.brand-foot { position: relative; font-size: 13px; color: rgba(255,255,255,.7); }

@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-form { padding: 28px 22px; }
  .auth-center { align-items: flex-start; padding-top: 24px; }
}
