/* ALTRIX auth pages — v2 (matches the home page) */
:root{
  --ink:#0a0716;--deep:#120d26;--surface:#181233;--raise:#211a44;--line:#2c2452;--line2:#3b3170;
  --text:#f3f1ff;--text2:#c5bfe6;--text3:#8f88b8;--cyan:#22d3ee;--blue:#3b82f6;--violet:#7c3aed;--up:#2fd58f;--down:#ff5c7a;
  --grad:linear-gradient(100deg,#22d3ee 0%,#3b82f6 48%,#7c3aed 100%);
  /* old names, still used by a few pages */
  --bg:var(--ink);--card:var(--surface);--border:var(--line);--accent:var(--cyan);--accent2:var(--blue);--green:var(--up);--red:var(--down);
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{min-height:100vh;min-height:100dvh;background:var(--ink);color:var(--text);font:400 16px/1.55 'Outfit','Onest',system-ui,sans-serif;-webkit-font-smoothing:antialiased;overflow-x:hidden;
  display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px 20px;position:relative}
body::before{content:"";position:fixed;inset:-20% -10% auto 30%;height:80vh;background:radial-gradient(closest-side,rgba(124,58,237,.28),transparent 70%),radial-gradient(closest-side at 25% 70%,rgba(34,211,238,.14),transparent 70%);pointer-events:none;z-index:0}
a{color:inherit}
.auth-back{position:fixed;top:22px;left:24px;z-index:2;display:inline-flex;align-items:center;gap:8px;color:var(--text3);text-decoration:none;font-size:14px;font-weight:600;padding:8px 12px;border-radius:10px;border:1px solid var(--line)}
.auth-back:hover{color:var(--text);border-color:var(--line2)}
.auth-shell{position:relative;z-index:1;width:100%;max-width:1060px;display:grid;grid-template-columns:minmax(0,1fr) 440px;gap:56px;align-items:center}

/* left side */
.auth-logo{display:block;width:176px;height:48px;margin-bottom:34px;background:url(../assets/img/altrix-logo-dark.png) left center/contain no-repeat}
.auth-logo>*{display:none}
.auth-kicker{display:inline-flex;align-items:center;gap:8px;padding:6px 12px 6px 9px;border-radius:999px;border:1px solid var(--line);color:var(--text2);font-size:14px;font-weight:500;margin-bottom:20px}
.auth-kicker::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--up)}
.auth-brand h1{font:700 clamp(36px,4.6vw,58px)/1.04 'Outfit','Onest',sans-serif;letter-spacing:-.035em;margin-bottom:18px}
.auth-brand h1 em{font-style:normal;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.auth-copy{color:var(--text2);font-size:18px;max-width:30em}
.auth-points{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;margin-top:34px;border:1px solid var(--line);border-radius:18px;overflow:hidden;background:var(--line);max-width:620px}
.auth-point{background:var(--deep);padding:16px}
.auth-point b{display:block;font-size:16px;font-weight:600;margin-bottom:4px}
.auth-point span{font-size:13px;color:var(--text3);line-height:1.45}

/* card */
.auth-card{background:linear-gradient(180deg,var(--surface),var(--deep));border:1px solid var(--line);border-radius:26px;padding:30px;box-shadow:0 40px 90px -40px rgba(0,0,0,.8)}
.auth-card h2{font:700 30px/1.1 'Outfit','Onest',sans-serif;letter-spacing:-.025em;margin-bottom:8px}
.auth-sub{font-size:15px;color:var(--text2);margin-bottom:22px}

/* sign-in buttons */
.auth-google,.auth-wallet{width:100%;height:52px;display:flex;align-items:center;justify-content:center;gap:10px;border-radius:14px;border:1px solid var(--line2);background:var(--raise);color:var(--text);font:600 16px 'Outfit','Onest',sans-serif;cursor:pointer;transition:border-color .2s,background .2s}
.auth-google:hover,.auth-wallet:hover{border-color:#5a4ca3;background:#281f52}
.auth-google svg,.auth-wallet svg{width:20px;height:20px;flex:none}
.auth-wallet{margin-top:10px;background:linear-gradient(var(--raise),var(--raise)) padding-box,var(--grad) border-box;border:1px solid transparent}
.auth-wallet svg{color:#a78bfa}
.auth-wallet:disabled{opacity:.6;cursor:wait}
.auth-google-rendered{background:none!important;border:0!important;height:auto!important;min-height:44px!important;overflow:hidden;border-radius:14px}
.auth-google-rendered iframe{max-width:100%!important}
.auth-wallet-note{font-size:13px;color:var(--text3);text-align:center;margin-top:8px}
.auth-or{display:flex;align-items:center;gap:12px;color:var(--text3);font-size:13px;margin:18px 0}
.auth-or::before,.auth-or::after{content:"";height:1px;flex:1;background:var(--line)}

/* form */
.auth-form{display:flex;flex-direction:column;gap:14px}
.auth-field label{display:block;font-size:14px;color:var(--text2);font-weight:500;margin-bottom:6px}
.auth-input-wrap{position:relative}
.auth-input{width:100%;height:50px;background:var(--ink);border:1px solid var(--line);border-radius:12px;color:var(--text);font:500 16px 'Outfit','Onest',sans-serif;padding:0 46px 0 14px;outline:none;transition:border-color .2s,box-shadow .2s}
.auth-input:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(59,130,246,.18)}
.auth-eye{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:34px;height:34px;border:0;background:transparent;color:var(--text3);cursor:pointer;border-radius:8px;display:flex;align-items:center;justify-content:center}
.auth-eye:hover{color:var(--text)}
.auth-eye svg{width:19px;height:19px}.auth-eye .slash{display:none}.auth-eye.on .slash{display:block}
.auth-row{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:14px;color:var(--text2)}
.auth-link{color:var(--cyan);text-decoration:none;font-weight:600}.auth-link:hover{text-decoration:underline}
.auth-btn{width:100%;height:52px;border:0;border-radius:14px;background:var(--grad);color:#fff;font:600 16px 'Outfit','Onest',sans-serif;cursor:pointer;box-shadow:0 12px 30px -12px rgba(59,130,246,.8);transition:transform .15s}
.auth-btn:hover{transform:translateY(-1px)}.auth-btn:disabled{opacity:.55;cursor:not-allowed;transform:none}
.auth-msg{display:none;border-radius:12px;padding:11px 13px;font-size:14px;line-height:1.45;border:1px solid var(--line);color:var(--text2);margin-bottom:14px}
.auth-msg.show{display:block}
.auth-msg.ok{border-color:rgba(47,213,143,.4);background:rgba(47,213,143,.08);color:#b9f5da}
.auth-msg.err{border-color:rgba(255,92,122,.4);background:rgba(255,92,122,.08);color:#ffc2cd}
.auth-footer{margin-top:20px;text-align:center;font-size:15px;color:var(--text2)}
.cf-turnstile{display:flex;justify-content:center}
.cf-turnstile:empty,.cf-turnstile.off{display:none}
.auth-small{font-size:13px;color:var(--text3);line-height:1.5}
:focus-visible{outline:2px solid var(--cyan);outline-offset:2px}

@media (max-width:900px){
  body{justify-content:flex-start;padding:16px 16px 40px}
  .auth-back{position:static;align-self:flex-start;margin-bottom:18px}
  .auth-shell{grid-template-columns:1fr;max-width:460px;gap:20px}
  .auth-brand{display:block}
  .auth-brand>*:not(.auth-logo){display:none}
  .auth-logo{width:150px;height:40px;margin:0 auto}
  .auth-card{padding:22px 18px;border-radius:22px}
  .auth-card h2{font-size:26px}
}
