/* Sign-in and sign-up screens (/register and the app's login view), in the site's style */
.auth {
  --bg: #0c0a12; --s1: #15121d; --s2: #1d1928; --s3: #272236;
  --b1: rgba(255,255,255,.08); --b2: rgba(255,255,255,.14);
  --t1: #f4f1fb; --t2: #a8a1bd; --t3: #6d6683;
  --lime: #c6ff3d; --pink: #ff5fa2; --violet: #9b6bff; --cyan: #3de0ff; --red: #ff5d5d;
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--t1); background: var(--bg);
  min-height: 100dvh; width: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  -webkit-font-smoothing: antialiased; line-height: 1.5;
  touch-action: manipulation;
}
.auth *, .auth *::before, .auth *::after { box-sizing: border-box; }
.auth a { color: var(--lime); text-decoration: none; }
.auth a:hover { text-decoration: underline; }

/* Left: brand panel */
.auth-side {
  position: relative; overflow: hidden; padding: 3rem clamp(2rem, 5vw, 4.5rem);
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  background: radial-gradient(circle at 15% 10%, rgba(155,107,255,.35), transparent 55%),
              radial-gradient(circle at 90% 85%, rgba(198,255,61,.14), transparent 50%), #110e19;
  border-right: 1px solid var(--b1);
}
.auth-logo { display: inline-flex; align-items: center; gap: .6rem; font-family: 'Unbounded', 'Manrope', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--t1) !important; text-decoration: none !important; position: relative; z-index: 1; }
.auth-mark { width: 32px; height: 32px; border-radius: 10px; background: var(--lime); position: relative; overflow: hidden; flex-shrink: 0; }
.auth-mark::before { content: ''; position: absolute; inset: 8px; border-radius: 50%; border: 2px solid #111800; }
.auth-mark::after { content: ''; position: absolute; left: 50%; top: 50%; width: 50%; height: 2px; background: #111800; transform-origin: 0 50%; transform: rotate(-45deg); }
.auth-pitch { position: relative; z-index: 1; max-width: 440px; }
.auth-pitch h2 { font-family: 'Unbounded', 'Manrope', sans-serif; font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; margin: 0; }
.auth-pitch h2 em { font-style: normal; background: linear-gradient(100deg, var(--lime), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-pitch ul { list-style: none; margin: 1.6rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
.auth-pitch li { display: flex; gap: .7rem; align-items: flex-start; font-weight: 600; color: #d6d1e4; }
.auth-pitch li span { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: rgba(255,255,255,.07); }
.auth-foot { position: relative; z-index: 1; font-size: .8rem; color: var(--t3); }
.auth-foot a { color: var(--t2); }
.auth-radar { position: absolute; right: -180px; bottom: -180px; width: 520px; height: 520px; border-radius: 50%; pointer-events: none; opacity: .7; }
.auth-radar i { position: absolute; border-radius: 50%; border: 1px solid rgba(198,255,61,.14); }
.auth-radar i:nth-child(1) { inset: 0; } .auth-radar i:nth-child(2) { inset: 70px; } .auth-radar i:nth-child(3) { inset: 140px; }
.auth-radar::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(rgba(198,255,61,.18), transparent 22%); animation: auth-spin 6s linear infinite; }
@keyframes auth-spin { to { transform: rotate(360deg); } }

/* Right: the form */
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2.5rem 1.25rem; padding-top: max(2.5rem, env(safe-area-inset-top, 2.5rem)); }
.auth-card { width: 100%; max-width: 400px; }
.auth-mobile-logo { display: none; margin-bottom: 1.6rem; }
.auth-card h1 { font-family: 'Unbounded', 'Manrope', sans-serif; font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.auth-sub { color: var(--t2); margin: .45rem 0 1.5rem; font-size: .98rem; }
.auth-perk { display: flex; gap: .7rem; align-items: center; background: rgba(198,255,61,.07); border: 1px solid rgba(198,255,61,.25); border-radius: 14px; padding: .8rem 1rem; margin-bottom: 1.3rem; font-size: .9rem; color: #e4f7c4; }
.auth-perk b { color: var(--lime); }

.auth .field { margin-bottom: .95rem; position: relative; }
.auth .field label { display: block; font-size: .8rem; font-weight: 700; color: var(--t2); margin-bottom: .4rem; }
.auth .field input {
  width: 100%; background: #100d17; border: 1px solid var(--b2); color: var(--t1);
  border-radius: 12px; padding: .85rem .95rem; font: 500 16px 'Manrope', system-ui, sans-serif;
  transition: border-color .15s, box-shadow .15s;
}
.auth .field input::placeholder { color: var(--t3); }
.auth .field input:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(198,255,61,.12); }
.auth .field.pw input { padding-right: 3rem; }
.auth .eye { position: absolute; right: .45rem; bottom: .45rem; width: 2.3rem; height: 2.3rem; border: 0; border-radius: 9px; background: none; color: var(--t3); font-size: 1rem; cursor: pointer; }
.auth .eye:hover { color: var(--t1); background: rgba(255,255,255,.06); }
.auth .hint { font-size: .75rem; color: var(--t3); margin-top: .3rem; }

.auth .btn-main, .auth .btn-ghost {
  display: flex; align-items: center; justify-content: center; gap: .4rem; width: 100%;
  border-radius: 999px; padding: .95rem 1.2rem; font: 800 1rem 'Manrope', system-ui, sans-serif;
  cursor: pointer; border: 0; transition: transform .12s, box-shadow .2s, background .15s; text-decoration: none !important;
}
.auth .btn-main { background: var(--lime); color: #111800 !important; box-shadow: 0 8px 28px rgba(198,255,61,.22), inset 0 -3px 0 rgba(0,0,0,.15); }
.auth .btn-main:hover { transform: translateY(-1px); box-shadow: 0 12px 34px rgba(198,255,61,.32), inset 0 -3px 0 rgba(0,0,0,.15); }
.auth .btn-main:disabled { opacity: .65; transform: none; cursor: default; }
.auth .btn-ghost { background: rgba(255,255,255,.05); border: 1px solid var(--b2); color: var(--t1) !important; }
.auth .btn-ghost:hover { background: rgba(255,255,255,.09); }
.auth .stack { display: flex; flex-direction: column; gap: .7rem; }
.auth .or { display: flex; align-items: center; gap: .8rem; color: var(--t3); font-size: .8rem; font-weight: 700; margin: .4rem 0; }
.auth .or::before, .auth .or::after { content: ''; flex: 1; height: 1px; background: var(--b1); }

.auth .consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .85rem; color: var(--t2); margin: .3rem 0 1.1rem; cursor: pointer; line-height: 1.5; }
.auth .consent input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; flex-shrink: 0; margin: 1px 0 0; border-radius: 6px; border: 1.5px solid var(--b2); background: #100d17; cursor: pointer; display: grid; place-items: center; padding: 0; }
.auth .consent input:checked { background: var(--lime); border-color: var(--lime); }
.auth .consent input:checked::after { content: '✓'; color: #111800; font-size: 13px; font-weight: 900; }
.auth .consent input:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

.auth .msg-err { display: none; margin-bottom: 1rem; padding: .8rem 1rem; border-radius: 12px; background: rgba(255,93,93,.1); border: 1px solid rgba(255,93,93,.35); color: #ffb0b0; font-size: .9rem; font-weight: 600; }
.auth .msg-warn { display: none; margin-bottom: 1rem; padding: .9rem 1rem; border-radius: 12px; background: rgba(255,178,61,.08); border: 1px solid rgba(255,178,61,.3); color: #ffe0ad; font-size: .85rem; }
.auth .msg-warn .btn-red { background: var(--lime); color: #111800; border: 0; border-radius: 999px; font-weight: 800; }
.auth .alt { text-align: center; color: var(--t2); font-size: .9rem; margin-top: 1.3rem; }
.auth .alt-small { text-align: center; color: var(--t3); font-size: .8rem; margin-top: .8rem; }
.auth .langs { display: flex; justify-content: center; gap: 2px; margin: 1.5rem auto 0; background: rgba(255,255,255,.05); border-radius: 999px; padding: 3px; width: max-content; font-size: .75rem; font-weight: 800; }
.auth .langs a { padding: .25rem .6rem; border-radius: 999px; color: var(--t3); text-decoration: none; }
.auth .langs a.on { background: var(--s3); color: var(--t1); }
.auth .legal { text-align: center; font-size: .75rem; color: var(--t3); margin-top: .9rem; }
.auth .legal a { color: var(--t3); }
.auth .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 880px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-side { display: none; }
  .auth-mobile-logo { display: inline-flex; }
  .auth-main { justify-content: flex-start; padding-top: max(1.8rem, env(safe-area-inset-top, 1.8rem)); }
}
@media (prefers-reduced-motion: reduce) { .auth-radar::after { animation: none; } }
