/* =============================================================
   XPOSE — Estilo das telas de conta (REDESIGN tema claro/glass)
   DROP-IN: substitui _auth.css mantendo TODAS as classes .x-*.
   Usado por cadastro.html, login.html, minha-area.html.
   Fonte Plus Jakarta Sans carregada via <link> no <head> das páginas.
   ============================================================= */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: #eef0f3;
  background-image:
    radial-gradient(900px 480px at 80% -10%, rgba(22,168,102,.10), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(22,168,102,.06), transparent 60%);
  background-attachment: fixed;
  color: #46505e;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 400; line-height: 1.6; min-height: 100vh; min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-weight: 800; line-height: 1.12; color: #0e1319; letter-spacing: -0.5px; }
a { color: #16a866; text-decoration: none; font-weight: 600; }
a:hover { color: #0f7a4a; }

/* ---- Marca topo ---- */
.x-brand { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: 1.15rem; letter-spacing: .2em; text-transform: uppercase; color: #0e1319; display: inline-flex; align-items: center; gap: .32em; }
/* Monograma "X" da marca, antes do wordmark (transparente, escala com a fonte) */
.x-brand::before { content: ""; width: 1.2em; height: 1.05em; flex: none; background: url("logo.png") no-repeat center/contain; }
.x-brand-sub { font-size: .58rem; letter-spacing: .28em; color: #16a866; text-transform: uppercase; margin-top: 3px; font-weight: 700; }

/* ---- Cartão ---- */
.x-card {
  width: 100%; max-width: 420px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 20px; padding: 38px 34px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 70px -25px rgba(20,30,45,.3);
}
.x-card h1 { font-size: 1.8rem; color: #0e1319; margin-bottom: 4px; }
.x-card .x-sub { font-size: .92rem; color: #6a7480; margin-bottom: 26px; font-weight: 500; }

/* ---- Campos ---- */
.x-field { margin-bottom: 16px; }
.x-label { display: block; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: #9aa3ad; margin-bottom: 7px; font-weight: 700; }
.x-input {
  width: 100%; background: #fff; color: #11161d;
  border: 1px solid rgba(20,30,45,.12); border-radius: 11px;
  padding: 13px 14px; font-family: inherit; font-size: 16px;
  transition: border-color .18s, box-shadow .18s;
}
.x-input::placeholder { color: #9aa3ad; }
.x-input:focus { outline: none; border-color: #16a866; box-shadow: 0 0 0 3px rgba(22,168,102,.14); }
.x-input-wrap { position: relative; }
.x-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: none; border: none; color: #9aa3ad; cursor: pointer; font-size: 1.05rem; line-height: 1; }

/* ---- Botão ---- */
.x-btn {
  width: 100%; border: none; border-radius: 12px; cursor: pointer;
  background: #16a866; color: #fff;
  font-family: inherit; font-weight: 700; font-size: .98rem; letter-spacing: .01em;
  padding: 14px; transition: filter .15s, opacity .15s, transform .1s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 14px 30px -10px rgba(22,168,102,.5);
}
.x-btn:hover { filter: brightness(1.06); }
.x-btn:active { transform: translateY(1px); }
.x-btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.x-btn-ghost { background: transparent; color: #11161d; border: 1px solid rgba(20,30,45,.14); box-shadow: none; }
.x-btn-ghost:hover { background: rgba(20,30,45,.04); }

/* ---- Mensagens ---- */
.x-msg { font-size: .85rem; border-radius: 10px; padding: 11px 13px; margin-bottom: 16px; display: none; }
.x-msg.show { display: block; }
.x-msg.err { background: rgba(214,77,70,.10); border: 1px solid rgba(214,77,70,.35); color: #c0392b; }
.x-msg.ok  { background: rgba(22,168,102,.12); border: 1px solid rgba(22,168,102,.4); color: #0f7a4a; }

/* ---- Link de rodapé do cartão ---- */
.x-foot { text-align: center; font-size: .88rem; color: #6a7480; margin-top: 20px; }
.x-link-muted { color: #6a7480; font-size: .82rem; }

/* ---- Layout centralizado (cadastro/login mobile) ---- */
.x-center { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 28px 18px; }

/* ---- Split-screen (login desktop) ---- */
.x-split {
  min-height: 100dvh; display: flex; align-items: stretch; justify-content: center;
  gap: clamp(40px, 6vw, 96px); max-width: 1180px; margin: 0 auto;
  padding: 48px clamp(24px, 5vw, 64px);
}
.x-split-brand {
  flex: 1 1 0; max-width: 480px;
  display: flex; flex-direction: column; justify-content: center;
  border-right: 1px solid rgba(20,30,45,.1);
  padding-right: clamp(40px, 5vw, 72px);
}
.x-split-brand h2 { font-size: 2.4rem; color: #0e1319; line-height: 1.1; margin: 18px 0 16px; letter-spacing: -1px; }
.x-split-brand p.lead { font-size: 1rem; color: #56606e; max-width: 340px; margin-bottom: 30px; font-weight: 500; }
.x-perk { display: flex; align-items: center; gap: 12px; color: #46505e; font-size: .92rem; margin-bottom: 14px; font-weight: 500; }
.x-perk .dot { width: 8px; height: 8px; border-radius: 50%; background: #16a866; flex: none; box-shadow: 0 0 10px rgba(22,168,102,.5); }
.x-split-form { flex: 1 1 0; max-width: 440px; display: flex; align-items: center; justify-content: center; }
@media (max-width: 980px) {
  .x-split { gap: clamp(28px, 4vw, 56px); padding: 40px 32px; }
  .x-split-brand { max-width: 380px; }
}
@media (max-width: 760px) {
  .x-split { max-width: 480px; gap: 0; padding: 28px 18px; }
  .x-split-brand { display: none; }
  .x-split-form { max-width: 100%; width: 100%; }
}

/* ---- Spinner ---- */
.x-spin { width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: x-rot .7s linear infinite; }
@keyframes x-rot { to { transform: rotate(360deg); } }
