/* ═══════════════════════════════════════════════════════════
   Pocketise — auth.css  v3 (Modern Era)
   ══════════════════════════════════════════════════════════ */

/* ── Variables ───────────────────────────────────────────── */
:root {
  --a-primary:   #24a6e7;
  --a-primary-2: #e06728;
  --a-accent:    #e06728;
  --a-dark:      #071520;
  --a-dark-2:    #0d3d5c;
  --a-text:      #1E293B;
  --a-muted:     #64748B;
  --a-border:    #E2E8F0;
  --a-surface:   #F8FAFF;
}

/* ── Reset / Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #fff;
  color: var(--a-text);
  overflow: hidden;
}
a { text-decoration: none; }

/* ── Split wrapper ───────────────────────────────────────── */
.auth-split {
  display: flex;
  height: 100vh;
}

/* ══════════════════════════════════════════════════════════
   LEFT PANEL — branding
   ══════════════════════════════════════════════════════════ */
.auth-left {
  flex: 0 0 46%;
  background: linear-gradient(140deg, #071520 0%, #0d3d5c 55%, #0f5070 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 3.5rem;
  color: #fff;
}

/* Dot grid */
.auth-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(39,170,225,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39,170,225,.07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 45% 50%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 85% 85% at 45% 50%, #000 30%, transparent 100%);
}

/* Orbs */
.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(65px);
  pointer-events: none;
}
.auth-orb--1 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(39,170,225,.5), transparent 70%); top: -100px; left: -80px; animation: aOrb 14s ease-in-out infinite alternate; }
.auth-orb--2 { width: 340px; height: 340px; background: radial-gradient(circle, rgba(216,103,46,.38), transparent 70%); bottom: -70px; right: -40px; animation: aOrb 18s ease-in-out infinite alternate-reverse; }
.auth-orb--3 { width: 250px; height: 250px; background: radial-gradient(circle, rgba(216,103,46,.18), transparent 70%); top: 42%; right: 4%; animation: aOrb 10s ease-in-out infinite alternate; }
@keyframes aOrb { from { transform: translate(0,0) scale(1); } to { transform: translate(22px,-15px) scale(1.06); } }

/* Content above orbs */
.auth-left__inner { position: relative; z-index: 1; }

/* Brand */
.auth-left__brand {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.5px;
  margin-bottom: 2.75rem;
}
.auth-logo {
  height: 200px;
  width: auto;
  object-fit: contain;
  padding: 20px;
}
.auth-left__brand .bicon {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--a-primary), var(--a-primary-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 14px rgba(39,170,225,.4);
}

/* Headline */
.auth-left h2 {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -.5px;
  margin-bottom: 1rem;
}
.auth-left h2 .hl {
  background: linear-gradient(135deg, #27aae1, #d8672e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-left__sub {
  color: rgba(255,255,255,.58);
  font-size: .9375rem;
  line-height: 1.72;
  margin-bottom: 2rem;
}

/* Feature list */
.auth-feats {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 2.25rem;
}
.auth-feats li {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .875rem;
  color: rgba(255,255,255,.78);
}
.auth-feats .ck {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10B981, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .625rem;
  color: #fff;
  box-shadow: 0 2px 8px rgba(16,185,129,.35);
}

/* Mini pass cards */
.auth-passes {
  position: relative;
  height: 105px;
  margin-bottom: 2rem;
}
.auth-pass {
  position: absolute;
  border-radius: 16px;
  padding: 13px 17px;
  color: #fff;
  width: 220px;
}
.auth-pass--1 {
  background: linear-gradient(140deg, #27aae1, #1b8fbf);
  left: 0; top: 0;
  box-shadow: 0 14px 44px rgba(39,170,225,.45);
  animation: pFloat1 4s ease-in-out infinite;
}
.auth-pass--2 {
  background: linear-gradient(140deg, #0EA5E9, #06B6D4);
  left: 55px; top: 28px;
  box-shadow: 0 10px 32px rgba(14,165,233,.38);
  animation: pFloat2 5.5s ease-in-out infinite;
  opacity: .88;
}
.auth-pass--3 {
  background: linear-gradient(140deg, #F59E0B, #EF4444);
  left: 108px; top: 52px;
  box-shadow: 0 8px 24px rgba(245,158,11,.32);
  animation: pFloat3 7s ease-in-out infinite;
  opacity: .72;
}
@keyframes pFloat1 { 0%,100%{ transform: translateY(0) rotate(-1.5deg); } 50%{ transform: translateY(-9px) rotate(-1.5deg); } }
@keyframes pFloat2 { 0%,100%{ transform: translateY(0) rotate(1.2deg);  } 50%{ transform: translateY(-6px) rotate(1.2deg);  } }
@keyframes pFloat3 { 0%,100%{ transform: translateY(0) rotate(3deg);    } 50%{ transform: translateY(-4px) rotate(3deg);    } }

.auth-pass__lbl  { font-size: .55rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.4px; opacity: .62; }
.auth-pass__name { font-size: .9rem; font-weight: 800; margin-top: .15rem; }

/* Trust badge */
.auth-trust {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
}
.auth-trust__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 3px rgba(16,185,129,.22);
  flex-shrink: 0;
  animation: trustPulse 2.5s ease infinite;
}
@keyframes trustPulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(16,185,129,.22); }
  50%      { box-shadow: 0 0 0 6px rgba(16,185,129,.08); }
}

/* ══════════════════════════════════════════════════════════
   RIGHT PANEL — form
   ══════════════════════════════════════════════════════════ */
.auth-right {
  flex: 1;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem;
  background: #fff;
}

.auth-box {
  width: 100%;
  max-width: 420px;
  animation: boxIn .5s ease both;
}
@keyframes boxIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* Mobile-only logo */
.auth-box__mlogo {
  display: none;
  text-align: center;
  margin-bottom: 2rem;
}
.auth-box__mlogo a {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--a-primary);
  letter-spacing: -.5px;
}

/* Headings */
.auth-box h1 {
  font-size: 1.875rem;
  font-weight: 900;
  color: var(--a-text);
  letter-spacing: -.5px;
  line-height: 1.15;
  margin-bottom: .375rem;
}
.auth-box__sub {
  font-size: .9375rem;
  color: var(--a-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Flash alerts */
.auth-alert {
  border-radius: 12px;
  padding: .875rem 1rem;
  margin-bottom: 1.375rem;
  font-size: .875rem;
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  animation: boxIn .35s ease both;
}
.auth-alert i { flex-shrink: 0; font-size: 1rem; margin-top: 1px; }
.auth-alert--error   { background: #FFF1F2; border: 1.5px solid #FECACA; color: #B91C1C; }
.auth-alert--success { background: #F0FDF4; border: 1.5px solid #BBF7D0; color: #15803D; }

/* Field */
.auth-field { margin-bottom: 1.125rem; }
.auth-label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--a-text);
  margin-bottom: .4rem;
}
.auth-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .4rem;
}
.auth-label-row .auth-label { margin-bottom: 0; }
.auth-forgot {
  font-size: .8125rem;
  color: var(--a-primary);
  font-weight: 500;
  transition: color .2s;
}
.auth-forgot:hover { color: var(--a-primary-2); }

/* Input */
.auth-input {
  width: 100%;
  padding: .75rem 1rem;
  font-size: .9375rem;
  font-family: inherit;
  border: 1.5px solid var(--a-border);
  border-radius: 11px;
  background: var(--a-surface);
  color: var(--a-text);
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  -webkit-appearance: none;
}
.auth-input:focus {
  border-color: var(--a-primary);
  box-shadow: 0 0 0 3px rgba(39,170,225,.12);
  background: #fff;
}
.auth-input::placeholder { color: #CBD5E1; }

/* Password wrapper */
.auth-pw-wrap { position: relative; }
.auth-pw-wrap .auth-input { padding-right: 3.125rem; }
.auth-pw-eye {
  position: absolute;
  right: .9rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--a-muted);
  padding: 0;
  display: flex;
  align-items: center;
  font-size: 1.05rem;
  transition: color .2s;
}
.auth-pw-eye:hover { color: var(--a-primary); }

/* Password strength */
.auth-strength-bar {
  height: 3px;
  border-radius: 3px;
  background: var(--a-border);
  margin-top: .5rem;
  overflow: hidden;
}
.auth-strength-bar__fill {
  height: 100%;
  border-radius: 3px;
  width: 0;
  transition: width .35s ease, background .35s ease;
}
.auth-strength-hint {
  font-size: .75rem;
  color: var(--a-muted);
  margin-top: .3rem;
  min-height: 1rem;
}

/* Row — two fields side by side */
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: .875rem; }
@media (max-width: 480px) { .auth-row { grid-template-columns: 1fr; gap: 0; } }

/* Remember checkbox */
.auth-check-label {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: .875rem;
  color: var(--a-text);
  cursor: pointer;
  user-select: none;
}
.auth-check-label input[type=checkbox] {
  width: 16px; height: 16px;
  accent-color: var(--a-primary);
  cursor: pointer;
  flex-shrink: 0;
}

/* Submit button */
.auth-btn {
  width: 100%;
  padding: .9rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--a-primary);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(36,166,231,.35);
  transition: all .25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: .5rem;
  font-family: inherit;
}
.auth-btn:hover  { background: var(--a-primary-2); transform: translateY(-1px); box-shadow: 0 10px 30px rgba(224,103,40,.45); }
.auth-btn:active { transform: translateY(0); }
.auth-btn .a-spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: aSpin .65s linear infinite;
  display: none;
}
.auth-btn.loading .a-btn-txt { display: none; }
.auth-btn.loading .a-spinner  { display: block; }
@keyframes aSpin { to { transform: rotate(360deg); } }

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: .875rem;
  margin: 1.625rem 0 1.25rem;
  font-size: .8125rem;
  color: var(--a-muted);
}
.auth-divider::before,
.auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--a-border); }

/* Footer link */
.auth-foot {
  text-align: center;
  font-size: .875rem;
  color: var(--a-muted);
  margin-top: 1.25rem;
}
.auth-foot a { color: var(--a-primary); font-weight: 700; transition: color .2s; }
.auth-foot a:hover { color: var(--a-primary-2); }

/* Terms */
.auth-terms {
  font-size: .78rem;
  color: var(--a-muted);
  text-align: center;
  margin-top: .875rem;
  line-height: 1.65;
}
.auth-terms a { color: var(--a-primary); }
.auth-terms a:hover { text-decoration: underline; }

/* Back link */
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-size: .875rem;
  color: var(--a-muted);
  transition: color .2s;
  margin-bottom: 1.5rem;
}
.auth-back:hover { color: var(--a-primary); }

/* Trial badge */
.auth-trial-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(39,170,225,.08);
  color: var(--a-primary);
  border-radius: 100px;
  padding: .3rem .9rem;
  font-size: .8125rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
  body { overflow: auto; }
  .auth-split { flex-direction: column; height: auto; min-height: 100vh; }
  .auth-left  { display: none; }
  .auth-right { padding: 2.5rem 1.5rem 3.5rem; align-items: flex-start; }
  .auth-box__mlogo { display: block; }
}
@media (max-width: 480px) {
  .auth-right { padding: 2rem 1rem 3rem; }
  .auth-box h1 { font-size: 1.625rem; }
}
