/* ============================================================
   Clipzy — telas de conta (login, cadastro, recuperação, app)
   Medidas copiadas da tela original: card 448px, raio 20px,
   padding 32px, campos e botões de 48px com raio 12px.
   ============================================================ */

:root{
  --bg:#0B0A0E;
  --card:#141416;
  --txt:rgba(255,255,255,.92);
  --txt-2:rgba(255,255,255,.55);
  --txt-3:rgba(255,255,255,.35);
  --line:rgba(255,255,255,.08);
  --grad:linear-gradient(135deg,#6D28D9 0%,#C026D3 100%);
  --accent:#A855F7;
  --erro:#F87171;
  --ok:#4ADE80;
}
*{box-sizing:border-box;margin:0;padding:0}
body{
  background:var(--bg);color:var(--txt-2);
  font-family:"Inter Tight",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size:15px;line-height:1.6;-webkit-font-smoothing:antialiased;
}
a{color:inherit}
img{display:block;max-width:100%}

/* ---------- moldura ---------- */
.auth-page{
  min-height:100vh;display:flex;flex-direction:column;
  align-items:center;justify-content:center;padding:40px 20px;position:relative;overflow:hidden;
}
.auth-page::before{
  content:"";position:absolute;inset:-160px 0 auto 0;height:520px;pointer-events:none;
  background:radial-gradient(60% 50% at 50% 0%, rgba(160,60,246,.16), rgba(0,0,0,0) 70%);
}
.auth-mark{position:relative;z-index:2;margin-bottom:24px;display:block}
.auth-mark svg{width:40px;height:40px}
.auth-card{
  position:relative;z-index:2;
  width:100%;max-width:448px;
  background:var(--card);border:1px solid var(--line);border-radius:20px;padding:32px;
}
.auth-card h1{font-size:22px;font-weight:600;color:var(--txt);letter-spacing:-.02em;line-height:1.25}
.auth-sub{font-size:14px;color:var(--txt-2);margin-top:4px;margin-bottom:24px}

/* ---------- botão do Google ---------- */
.btn-google{
  width:100%;height:48px;display:flex;align-items:center;justify-content:center;gap:10px;
  background:var(--bg);border:1px solid var(--line);border-radius:12px;
  color:var(--txt);font-family:inherit;font-size:15px;font-weight:500;cursor:pointer;
  transition:border-color .18s, background .18s;
}
.btn-google:hover:not(:disabled){border-color:rgba(255,255,255,.2);background:#131318}
.btn-google svg{width:18px;height:18px;flex:none}

/* ---------- divisor OU ---------- */
.divisor{display:flex;align-items:center;gap:14px;margin:20px 0}
.divisor::before,.divisor::after{content:"";flex:1;height:1px;background:var(--line)}
.divisor span{font-size:12px;color:var(--txt-3);letter-spacing:.04em}

/* ---------- formulário ---------- */
.auth-form{display:flex;flex-direction:column;gap:12px}
.campo{
  width:100%;height:49px;padding:12px 14px;
  background:var(--bg);border:1px solid var(--line);border-radius:12px;
  color:var(--txt);font-family:inherit;font-size:15px;
  transition:border-color .18s, box-shadow .18s;
}
.campo::placeholder{color:var(--txt-3)}
.campo:focus{outline:none;border-color:rgba(168,85,247,.55);box-shadow:0 0 0 3px rgba(168,85,247,.14)}
.campo.invalido{border-color:rgba(248,113,113,.55)}
.campo:disabled{opacity:.55;cursor:not-allowed}

.btn-primary{
  width:100%;height:48px;border:0;border-radius:12px;
  background:var(--grad);color:#fff;font-family:inherit;font-size:15px;font-weight:500;
  cursor:pointer;display:flex;align-items:center;justify-content:center;gap:9px;
  box-shadow:0 8px 30px -12px rgba(160,60,246,.75);
  transition:transform .18s, box-shadow .18s, opacity .18s;
}
.btn-primary:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 14px 40px -14px rgba(160,60,246,.9)}
.btn-primary:disabled{opacity:.6;cursor:not-allowed;transform:none}

/* ---------- textos de apoio ---------- */
.legal{font-size:12px;line-height:1.55;color:var(--txt-3);text-align:center;margin:2px 0}
.legal a{color:var(--txt-2);text-decoration:underline;text-underline-offset:2px}
.legal a:hover{color:var(--txt)}
.link-btn{
  background:none;border:0;padding:0;cursor:pointer;font-family:inherit;
  color:var(--txt-2);font-size:13px;text-decoration:underline;text-underline-offset:2px;
}
.link-btn:hover{color:var(--txt)}
.esqueci{align-self:flex-end;font-size:12px;color:var(--txt-3);margin-top:-4px}
.rodape-card{text-align:center;margin-top:18px}

/* ---------- avisos ---------- */
.aviso{
  display:none;font-size:13.5px;line-height:1.5;border-radius:10px;padding:11px 13px;margin-bottom:14px;
}
.aviso.on{display:block}
.aviso.erro{background:rgba(248,113,113,.1);border:1px solid rgba(248,113,113,.3);color:#FCA5A5}
.aviso.ok{background:rgba(74,222,128,.1);border:1px solid rgba(74,222,128,.3);color:#86EFAC}

/* ---------- spinner ---------- */
.spin{width:16px;height:16px;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;
  border-radius:50%;animation:girar .7s linear infinite;display:none}
.carregando .spin{display:block}
@keyframes girar{to{transform:rotate(360deg)}}

/* ---------- logo em texto ---------- */
.logo-txt{display:flex;align-items:center;gap:9px;font-weight:700;font-size:18px;
  color:var(--txt);letter-spacing:-.03em;text-decoration:none}

/* ---------- app (área logada) ---------- */
.app-top{
  display:flex;align-items:center;gap:16px;height:64px;
  border-bottom:1px solid var(--line);padding:0 24px;
}
.app-top .sair{margin-left:auto}
.btn-ghost{
  height:38px;padding:0 16px;background:transparent;border:1px solid var(--line);border-radius:12px;
  color:var(--txt-2);font-family:inherit;font-size:14px;cursor:pointer;
}
.btn-ghost:hover{color:var(--txt);border-color:rgba(255,255,255,.2)}
.app-corpo{max-width:1100px;margin:0 auto;padding:48px 24px}
.app-corpo h1{font-size:28px;font-weight:600;color:var(--txt);letter-spacing:-.02em;margin-bottom:8px}
.app-card{
  background:var(--card);border:1px solid var(--line);border-radius:20px;padding:24px;margin-top:24px;
}
.app-card h2{font-size:17px;font-weight:600;color:var(--txt);margin-bottom:10px}
.dado{display:flex;gap:10px;font-size:14px;padding:7px 0;border-bottom:1px solid rgba(255,255,255,.05)}
.dado:last-child{border-bottom:0}
.dado b{color:var(--txt);font-weight:500;min-width:120px}

@media (max-width:520px){
  .auth-card{padding:24px}
  .auth-page{padding:24px 16px}
}
