/* ═══════════════════════════════════════════════════════════════
   ZEWS Editorial — Auth
   Porte fiel de apoio/ZEWS_EDITORIAL_ENTREGA_V1.2/html/styles.css
   (blocos .login / .login-brand / .login-form / .field / .lf-row).
   Tela cheia dividida: marca à esquerda, formulário à direita.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --ink:        #0B1F26;
  --teal:       #0F766E;
  --teal-600:   #0C5E57;
  --teal-700:   #0A4F49;
  --teal-050:   #E7F3F1;
  --orange:     #E8730C;
  --bg:         #F5F8F8;
  --surface:    #FFFFFF;
  --text:       #13242B;
  --muted:      #5E7178;
  --line:       #E5EBEC;
  --line-2:     #EEF3F3;
  --red:        #DC2626;
  --green:      #059669;
  --ff-display: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --ff-text:    'Inter', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing:border-box; margin:0; padding:0; }

body {
  font-family:var(--ff-text);
  color:var(--text);
  background:var(--surface);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3 { font-family:var(--ff-display); line-height:1.15; color:var(--ink); font-weight:800; letter-spacing:-.01em; }
a { color:inherit; text-decoration:none; }
img { max-width:100%; display:block; }

/* Skeleton */
#skeleton-loader {
  position:fixed; inset:0; background:var(--surface); z-index:9999;
  display:flex; align-items:center; justify-content:center; transition:opacity .5s ease;
}
#skeleton-loader img { max-height:56px; max-width:70%; width:auto; height:auto; animation:pulse 1.5s infinite; }
@keyframes pulse {
  0%,100% { transform:scale(.95); opacity:.7; }
  50%     { transform:scale(1.05); opacity:1; }
}
body.loaded #skeleton-loader { opacity:0; pointer-events:none; }

/* ── Split screen ── */
.auth-container { display:grid; grid-template-columns:1.05fr 1fr; min-height:100vh; }

/* ── Esquerda: marca ── */
.auth-info {
  background:linear-gradient(150deg, var(--ink) 0%, var(--teal-700) 70%, var(--teal) 120%);
  color:#fff; padding:54px; display:flex; flex-direction:column;
  position:relative; overflow:hidden;
}
.auth-info::after {
  content:""; position:absolute; right:-10%; bottom:-14%;
  width:52%; height:60%; border-radius:50%;
  background:radial-gradient(circle, rgba(232,115,12,.35), transparent 70%);
}
.lb-top { display:flex; align-items:center; gap:12px; position:relative; z-index:2; }
.lb-top .mark {
  width:46px; height:46px; background:#fff; border-radius:12px;
  display:grid; place-items:center; padding:7px; flex-shrink:0;
}
.lb-top b { font-size:20px; font-family:var(--ff-display); font-weight:800; }
.lb-top small {
  display:block; font-size:10.5px; letter-spacing:.14em;
  text-transform:uppercase; color:#7fd0c8;
}
.lb-mid { margin-top:auto; margin-bottom:auto; position:relative; z-index:2; padding:30px 0; }
.kick {
  font-family:var(--ff-display); font-weight:700; font-size:12px;
  letter-spacing:.14em; text-transform:uppercase; color:#7fd0c8;
}
.lb-mid h1 { color:#fff; font-size:38px; line-height:1.1; max-width:14ch; margin:12px 0 16px; }
.lb-mid p  { color:#c6dedd; font-size:16px; max-width:44ch; }
.lb-feats { display:flex; flex-direction:column; gap:14px; margin-top:26px; }
.lb-feats .f { display:flex; align-items:center; gap:13px; color:#dcecec; font-size:14.5px; font-weight:500; }
.lb-feats .f .ic {
  width:38px; height:38px; border-radius:10px; background:rgba(255,255,255,.12);
  display:grid; place-items:center; flex-shrink:0; color:#7fd0c8; font-size:16px;
}
.lb-foot { position:relative; z-index:2; font-size:12.5px; color:#8fb0b1; }

/* ── Direita: formulário ── */
.auth-form {
  display:flex; flex-direction:column; justify-content:center;
  padding:54px 8%; background:var(--surface);
}
.lf-inner { width:100%; max-width:380px; margin:0 auto; }
.auth-form h2 { font-size:26px; }
.auth-form .sub { color:var(--muted); margin:6px 0 28px; font-size:15px; }

.field { margin-bottom:16px; }
.field label { display:block; font-size:13px; font-weight:600; color:var(--text); margin-bottom:7px; }
.field .inp {
  display:flex; align-items:center; gap:10px;
  border:1.5px solid var(--line); border-radius:12px;
  padding:12px 14px; background:#fff; transition:.15s;
}
.field .inp:focus-within { border-color:var(--teal); box-shadow:0 0 0 4px var(--teal-050); }
.field .inp .i { color:var(--muted); font-size:16px; flex-shrink:0; }
.field .inp input {
  border:none; outline:none; flex:1; font-family:inherit;
  font-size:15px; background:transparent; color:var(--text); min-width:0;
}
.field .inp .toggle { color:var(--muted); cursor:pointer; font-size:15px; }
.field .inp .toggle:hover { color:var(--teal); }

.lf-row {
  display:flex; align-items:center; justify-content:space-between;
  margin:6px 0 22px; font-size:13.5px;
}
.lf-row label { display:flex; align-items:center; gap:8px; color:var(--muted); cursor:pointer; }
.lf-row input[type=checkbox] { width:15px; height:15px; accent-color:var(--teal); }
.lf-row a { color:var(--teal); font-weight:600; }
.lf-row a:hover { text-decoration:underline; }

.btn {
  display:inline-flex; align-items:center; gap:8px; justify-content:center;
  border:none; border-radius:999px; cursor:pointer;
  font-family:var(--ff-display); font-weight:700; font-size:14.5px;
  padding:11px 20px; transition:.16s ease;
}
.btn:hover { transform:translateY(-1px); }
.btn-primary { background:var(--teal); color:#fff; box-shadow:0 12px 30px rgba(15,118,110,.28); }
.btn-primary:hover { background:var(--teal-600); }
.btn-block { width:100%; padding:13px 20px; }

.lf-hint {
  margin-top:22px; font-size:12.5px; color:var(--muted); text-align:center;
  background:var(--bg); border:1px solid var(--line); border-radius:10px; padding:10px;
}
.lf-hint a { color:var(--teal); font-weight:700; }
.lf-hint a:hover { text-decoration:underline; }

/* ── Alertas ── */
.auth-alert {
  padding:12px 16px; border-radius:12px; font-size:13.5px; margin-bottom:16px;
  display:flex; align-items:center; gap:8px;
}
.auth-alert.error   { background:rgba(220,38,38,.07); border:1px solid rgba(220,38,38,.20); color:var(--red); }
.auth-alert.success { background:rgba(5,150,105,.07); border:1px solid rgba(5,150,105,.20); color:var(--green); }

/* ── Voltar ── */
.back-btn {
  position:absolute; top:28px; right:28px; z-index:3;
  width:40px; height:40px; background:#fff; color:var(--muted);
  display:grid; place-items:center; border-radius:50%;
  font-size:17px; transition:.2s; border:1px solid var(--line);
}
.back-btn:hover { border-color:var(--teal); color:var(--teal); }

/* ═══════════════════════════════════════════════════════════════
   Compat — register, recuperar-senha e redefinir-senha
   O protótipo só especifica a tela de login. Estas três seguem o
   mesmo split screen, mas com a marcação antiga; as classes abaixo
   as mantêm de pé com os tokens novos.
   ═══════════════════════════════════════════════════════════════ */
.form-row   { display:flex; gap:16px; }
.form-group { margin-bottom:16px; flex:1; }
.form-label { display:block; font-size:13px; font-weight:600; color:var(--text); margin-bottom:7px; }
.form-label i { color:var(--teal); margin-right:6px; }
.form-input {
  width:100%; padding:12px 14px; border:1.5px solid var(--line); border-radius:12px;
  font-size:15px; font-family:inherit; background:#fff; color:var(--text);
  transition:border-color .2s, box-shadow .2s; outline:none;
}
.form-input:focus { border-color:var(--teal); box-shadow:0 0 0 4px var(--teal-050); }
.form-input::placeholder { color:#84969C; }

.auth-form > .auth-header,
.auth-form > form,
.auth-form > .auth-footer { width:100%; max-width:380px; margin-inline:auto; }

.auth-header { margin-bottom:26px; }
.auth-logo   { max-height:46px; max-width:100%; width:auto; height:auto; margin-bottom:18px; }
.auth-header h1 { font-family:var(--ff-display); font-size:26px; color:var(--ink); font-weight:800; margin-bottom:6px; }
.auth-header p  { font-size:15px; color:var(--muted); }

.input-icon-wrapper { position:relative; }
.input-icon-wrapper i {
  position:absolute; right:14px; top:50%; transform:translateY(-50%);
  color:var(--muted); cursor:pointer; transition:color .15s;
}
.input-icon-wrapper i:hover { color:var(--teal); }

.form-actions {
  display:flex; justify-content:space-between; align-items:center;
  margin:6px 0 22px; font-size:13.5px;
}
.form-actions a { color:var(--teal); font-weight:600; }
.form-actions a:hover { text-decoration:underline; }
.checkbox-group { display:flex; align-items:center; gap:8px; color:var(--muted); cursor:pointer; }
.checkbox-group input { width:15px; height:15px; accent-color:var(--teal); }

.btn-submit {
  width:100%; padding:13px 20px; border:none; border-radius:999px; cursor:pointer;
  background:var(--teal); color:#fff; box-shadow:0 12px 30px rgba(15,118,110,.28);
  font-family:var(--ff-display); font-weight:700; font-size:14.5px; transition:.16s ease;
}
.btn-submit:hover { background:var(--teal-600); transform:translateY(-1px); }

.auth-footer { text-align:center; margin-top:22px; font-size:13.5px; color:var(--muted); }
.auth-footer a { color:var(--teal); font-weight:700; }
.auth-footer a:hover { text-decoration:underline; }

/* Painel da marca nessas telas (usa .info-*) */
.auth-info-content { position:relative; z-index:2; margin:auto 0; }
.info-icon { margin-bottom:20px; }
.info-icon img { max-height:46px; max-width:100%; width:auto; height:auto; }
.info-divider { width:48px; height:3px; background:var(--orange); border-radius:9px; margin:0 0 20px; }
.info-title {
  font-family:var(--ff-display); font-weight:800; font-size:32px;
  color:#fff; line-height:1.12; margin-bottom:14px; max-width:14ch;
}
.info-desc { font-size:15.5px; line-height:1.65; color:#c6dedd; margin-bottom:26px; max-width:44ch; }
.info-list { list-style:none; display:flex; flex-direction:column; gap:14px; }
.info-list li { display:flex; align-items:center; gap:13px; color:#dcecec; font-size:14.5px; font-weight:500; }
.info-list li i {
  width:38px; height:38px; border-radius:10px; background:rgba(255,255,255,.12);
  display:grid; place-items:center; flex-shrink:0; color:#7fd0c8; font-size:16px;
}

/* ── Responsivo (styles.css, @860px) ── */
@media (max-width:860px) {
  .auth-container { grid-template-columns:1fr; }
  .auth-info { display:none; }
  .auth-form { padding:40px 24px; min-height:100vh; }
}
