/* AmericaCyberSquad Auth — Sign In / Create Account */
:root {
  --navy: #0a1628;
  --blue: #1354f9;
  --blue2: #0e44d4;
  --blue3: #e8f0fe;
  --amber: #f4a012;
  --green: #0dab76;
  --red: #e53935;
  --g1: #f7f8fb;
  --g2: #eef0f5;
  --g3: #d6dae6;
  --g4: #9aa3b8;
  --g5: #5b6480;
  --text: #111827;
  --border: #e2e6f0;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { height: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--g1);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Sora', sans-serif; line-height: 1.15; }
.hidden { display: none !important; }
.fade-in { animation: fadeIn .3s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Top bar */
.top-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 40px);
  position: sticky;
  top: 0;
  z-index: 200;
  flex-shrink: 0;
}
.logo-wrap { display: flex; align-items: center; gap: 9px; text-decoration: none; cursor: pointer; }
.logo-svg { width: 30px; height: 30px; flex-shrink: 0; }
.logo-text { font-family: 'Sora', sans-serif; font-size: clamp(13px, 2.5vw, 16px); font-weight: 800; color: var(--navy); white-space: nowrap; }
.logo-text span { color: var(--blue); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-link { font-size: 13px; font-weight: 500; color: var(--g5); cursor: pointer; transition: color .2s; white-space: nowrap; }
.topbar-link:hover, .topbar-link.active { color: var(--blue); font-weight: 700; }
.topbar-sep { color: var(--border); }

/* Auth pages — split layout */
.auth-page { display: none; flex: 1; min-height: calc(100vh - 60px); }
.auth-page.active { display: flex; }
.split { display: flex; width: 100%; min-height: calc(100vh - 60px); }

/* Left panel */
.lp {
  flex: 0 0 45%;
  background: var(--navy);
  padding: clamp(36px, 5vw, 64px) clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.lp::before { content: ''; position: absolute; top: -140px; right: -140px; width: 380px; height: 380px; border-radius: 50%; background: rgba(19,84,249,.14); pointer-events: none; }
.lp::after { content: ''; position: absolute; bottom: -80px; left: -60px; width: 260px; height: 260px; border-radius: 50%; background: rgba(244,160,18,.07); pointer-events: none; }
.lp-inner { position: relative; z-index: 1; }
.lp-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(19,84,249,.18); border: 1px solid rgba(19,84,249,.35); padding: 5px 13px; border-radius: 20px; margin-bottom: 28px; }
.lp-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex-shrink: 0; animation: blink 1.8s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.lp-badge span { font-size: 10px; font-weight: 700; color: rgba(255,255,255,.8); letter-spacing: 1px; text-transform: uppercase; }
.lp-title { font-size: clamp(22px, 2.5vw, 36px); font-weight: 800; color: #fff; line-height: 1.1; margin-bottom: 14px; }
.lp-title em { font-style: normal; color: var(--blue); }
.lp-sub { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.75; margin-bottom: 36px; max-width: 360px; }
.lp-feats { display: flex; flex-direction: column; gap: 14px; }
.lp-feat { display: flex; align-items: flex-start; gap: 13px; }
.lp-feat-ico { width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lp-feat-ico svg { width: 15px; height: 15px; color: rgba(255,255,255,.7); }
.lp-feat-ttl { font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.lp-feat-sub { font-size: 11px; color: rgba(255,255,255,.42); line-height: 1.55; }
.lp-bottom { position: relative; z-index: 1; }
.lp-quote { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); border-radius: 10px; padding: 18px 20px; margin-bottom: 16px; }
.lp-quote-txt { font-size: 12px; color: rgba(255,255,255,.65); line-height: 1.7; font-style: italic; margin-bottom: 12px; }
.lp-quote-auth { display: flex; align-items: center; gap: 10px; }
.lp-quote-av { width: 32px; height: 32px; border-radius: 50%; background: var(--blue); display: flex; align-items: center; justify-content: center; font-family: 'Sora', sans-serif; font-size: 11px; font-weight: 800; color: #fff; flex-shrink: 0; }
.lp-quote-name { font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 700; color: #fff; }
.lp-quote-role { font-size: 10px; color: rgba(255,255,255,.38); }
.lp-stats { display: flex; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; overflow: hidden; }
.lp-stat { flex: 1; padding: 12px 14px; border-right: 1px solid rgba(255,255,255,.08); text-align: center; }
.lp-stat:last-child { border-right: none; }
.lp-stat-n { font-family: 'Sora', sans-serif; font-size: 18px; font-weight: 800; color: #fff; }
.lp-stat-l { font-size: 9px; color: rgba(255,255,255,.4); font-weight: 600; text-transform: uppercase; letter-spacing: .7px; margin-top: 2px; }

/* Right panel */
.rp {
  flex: 1;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(32px, 5vh, 56px) clamp(16px, 5vw, 56px);
  overflow-y: auto;
  min-height: calc(100vh - 60px);
}
.form-card { width: 100%; max-width: 420px; margin: auto 0; padding: 8px 0; }
.fc-title { font-size: clamp(20px, 3.5vw, 26px); font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.fc-sub { font-size: 13px; color: var(--g5); margin-bottom: 28px; line-height: 1.6; }
.fc-sub a { color: var(--blue); font-weight: 600; text-decoration: none; cursor: pointer; }
.fc-sub a:hover { text-decoration: underline; }

/* Role cards */
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.role-card { border: 2px solid var(--border); border-radius: 10px; padding: 18px 14px; cursor: pointer; transition: border-color .2s, background .2s; position: relative; background: #fff; text-align: center; }
.role-card:hover { border-color: var(--g3); background: var(--g1); }
.role-card.sel { border-color: var(--blue); background: var(--blue3); }
.role-check { position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); background: #fff; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.role-card.sel .role-check { background: var(--blue); border-color: var(--blue); }
.role-check svg { width: 9px; height: 9px; color: #fff; opacity: 0; }
.role-card.sel .role-check svg { opacity: 1; }
.role-ico { width: 44px; height: 44px; border-radius: 10px; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; }
.role-ico svg { width: 20px; height: 20px; }
.role-ttl { font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.role-card.sel .role-ttl { color: var(--blue); }
.role-desc { font-size: 11px; color: var(--g5); line-height: 1.5; }

/* Or divider */
.or-div { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
.or-div::before, .or-div::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.or-div span { font-size: 10px; color: var(--g4); font-weight: 700; text-transform: uppercase; letter-spacing: .8px; }

/* Social buttons */
.soc-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; border: 1.5px solid var(--border); border-radius: 8px; padding: 11px 16px; background: #fff; font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer; transition: border-color .2s, background .2s; margin-bottom: 8px; text-decoration: none; }
.soc-btn:hover { border-color: var(--g3); background: var(--g1); }
.soc-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Form fields */
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fg { margin-bottom: 16px; }
.flabel { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 700; color: var(--navy); margin-bottom: 6px; letter-spacing: .2px; }
.flabel .req { color: var(--red); }
.fi-wrap { position: relative; }
.fi-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--g4); pointer-events: none; display: flex; align-items: center; justify-content: center; }
.fi-ico svg { width: 15px; height: 15px; }
.fi { width: 100%; border: 1.5px solid var(--border); border-radius: 8px; padding: 11px 14px; font-family: 'Manrope', sans-serif; font-size: 13px; color: var(--text); background: #fff; outline: none; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; }
.fi.has-ico { padding-left: 38px; }
.fi.has-btn { padding-right: 40px; }
.fi:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(19,84,249,.08); }
.fi::placeholder { color: var(--g4); }
.fi.err { border-color: var(--red); }
textarea.fi { resize: vertical; min-height: 80px; }
.fselect { width: 100%; border: 1.5px solid var(--border); border-radius: 8px; padding: 11px 36px 11px 14px; font-family: 'Manrope', sans-serif; font-size: 13px; color: var(--text); background: #fff url("data:image/svg+xml,%3Csvg width='10' height='7' viewBox='0 0 10 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%239aa3b8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center; -webkit-appearance: none; appearance: none; outline: none; transition: border-color .2s; }
.fselect:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(19,84,249,.08); }
.pwd-toggle { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; padding: 3px; color: var(--g4); display: flex; align-items: center; transition: color .2s; }
.pwd-toggle:hover { color: var(--navy); }
.pwd-toggle svg { width: 15px; height: 15px; }
.pwd-bars { display: flex; gap: 4px; margin: 7px 0 3px; }
.psb { height: 3px; flex: 1; border-radius: 2px; background: var(--g2); transition: background .3s; }
.psb.weak { background: var(--red); }
.psb.fair { background: var(--amber); }
.psb.strong { background: var(--green); }
.pwd-lbl { font-size: 10px; color: var(--g5); font-weight: 600; }

/* Checkbox */
.chk-row { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 20px; }
.chk-box { width: 17px; height: 17px; min-width: 17px; border: 2px solid var(--border); border-radius: 4px; background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; margin-top: 1px; transition: all .2s; flex-shrink: 0; }
.chk-box.on { background: var(--blue); border-color: var(--blue); }
.chk-box svg { width: 9px; height: 9px; color: #fff; opacity: 0; }
.chk-box.on svg { opacity: 1; }
.chk-txt { font-size: 12px; color: var(--g5); line-height: 1.6; }
.chk-txt a { color: var(--blue); font-weight: 600; text-decoration: none; }

/* Buttons */
.btn { width: 100%; border: none; border-radius: 8px; padding: 13px 20px; font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background .2s, transform .15s, box-shadow .2s; white-space: nowrap; }
.btn:active { transform: scale(.99); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue2); transform: translateY(-1px); box-shadow: 0 4px 18px rgba(19,84,249,.28); }
.btn-ghost { background: var(--g1); color: var(--navy); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--g3); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { opacity: .9; }
.btn-spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn-back { flex: 0 0 46px; padding: 13px; }
.btn-row .btn-main { flex: 1; }

/* Step indicator */
.steps { display: flex; align-items: flex-start; margin-bottom: 24px; }
.step-item { display: flex; align-items: center; flex: 1; }
.step-item:last-child { flex: 0; }
.step-col { display: flex; flex-direction: column; align-items: center; }
.step-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border); background: #fff; display: flex; align-items: center; justify-content: center; font-family: 'Sora', sans-serif; font-size: 11px; font-weight: 800; color: var(--g4); transition: all .3s; flex-shrink: 0; }
.step-dot.active { border-color: var(--blue); background: var(--blue); color: #fff; }
.step-dot.done { border-color: var(--green); background: var(--green); color: #fff; }
.step-lbl { font-size: 10px; font-weight: 700; color: var(--g4); margin-top: 5px; letter-spacing: .3px; }
.step-lbl.active { color: var(--blue); }
.step-lbl.done { color: var(--green); }
.step-line { flex: 1; height: 2px; background: var(--border); margin: 0 4px; margin-bottom: 16px; transition: background .3s; }
.step-line.done { background: var(--green); }

/* Alert */
.alert { padding: 11px 14px; border-radius: 8px; font-size: 12px; font-weight: 600; margin-bottom: 16px; display: flex; align-items: flex-start; gap: 9px; }
.alert svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; }
.alert-err { background: rgba(229,57,53,.06); border: 1px solid rgba(229,57,53,.18); color: var(--red); }
.alert-info { background: var(--blue3); border: 1px solid rgba(19,84,249,.18); color: var(--blue); }

/* OTP */
.otp-row { display: flex; gap: 8px; justify-content: center; margin: 18px 0; }
.otp-in { width: 46px; height: 54px; border: 2px solid var(--border); border-radius: 10px; text-align: center; font-family: 'Sora', sans-serif; font-size: 20px; font-weight: 800; color: var(--navy); outline: none; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; }
.otp-in:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(19,84,249,.1); }

/* Back link */
.back-lnk { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--g5); cursor: pointer; margin-bottom: 20px; transition: color .2s; background: none; border: none; padding: 0; }
.back-lnk:hover { color: var(--blue); }
.back-lnk svg { width: 13px; height: 13px; }

/* Info box */
.info-box { background: var(--blue3); border: 1px solid rgba(19,84,249,.15); border-radius: 8px; padding: 13px 15px; margin-bottom: 18px; }
.info-box-ttl { font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 700; color: var(--blue); margin-bottom: 4px; }
.info-box-txt { font-size: 11px; color: var(--g5); line-height: 1.6; }

/* Success */
.success-wrap { text-align: center; }
.success-ico { width: 68px; height: 68px; border-radius: 50%; background: rgba(13,171,118,.1); border: 2px solid rgba(13,171,118,.2); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.success-ico svg { width: 30px; height: 30px; color: var(--green); }
.success-ico.blue-ico { background: rgba(19,84,249,.08); border-color: rgba(19,84,249,.2); }
.success-ico.blue-ico svg { color: var(--blue); }
.success-ttl { font-family: 'Sora', sans-serif; font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.success-sub { font-size: 13px; color: var(--g5); line-height: 1.7; margin-bottom: 24px; }

/* Checklist */
.checklist { display: flex; flex-direction: column; gap: 8px; text-align: left; margin-top: 20px; }
.cl-item { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 8px; border: 1px solid var(--border); background: var(--g1); font-size: 12px; font-weight: 600; color: var(--g5); }
.cl-item.done { background: rgba(13,171,118,.06); border-color: rgba(13,171,118,.2); color: var(--green); }
.cl-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.cl-item.done .cl-dot { background: var(--green); border-color: var(--green); }
.cl-item.done .cl-dot svg { width: 9px; height: 9px; color: #fff; }

/* Next steps card */
.next-steps-card { background: var(--g1); border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin-top: 20px; text-align: left; }
.nsc-title { font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.nsc-item { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--g5); padding: 4px 0; }
.nsc-check { width: 20px; height: 20px; border-radius: 50%; background: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nsc-check svg { width: 9px; height: 9px; color: #fff; }

/* Login tab toggle */
.tab-toggle { display: flex; background: var(--g1); border: 1px solid var(--border); border-radius: 8px; padding: 3px; margin-bottom: 24px; }
.tab-toggle button { flex: 1; padding: 9px; border: none; border-radius: 6px; font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 700; cursor: pointer; transition: all .2s; background: transparent; color: var(--g5); }
.tab-toggle button.active { background: var(--navy); color: #fff; }

/* Forgot link */
.fgt { font-size: 12px; color: var(--blue); font-weight: 600; cursor: pointer; }
.fgt:hover { text-decoration: underline; }

/* Panel */
.panel { }
.panel.hidden { display: none; }

/* Mobile banner */
.mobile-banner { display: none; background: var(--navy); padding: 20px clamp(16px, 4vw, 24px); }
.mobile-banner-inner { display: flex; align-items: center; gap: 10px; }
.mb-badge { display: inline-flex; align-items: center; gap: 7px; background: rgba(19,84,249,.18); border: 1px solid rgba(19,84,249,.3); padding: 4px 11px; border-radius: 20px; }
.mb-badge span { font-size: 10px; font-weight: 700; color: rgba(255,255,255,.8); letter-spacing: .8px; text-transform: uppercase; }
.mb-title { font-family: 'Sora', sans-serif; font-size: clamp(16px, 4vw, 20px); font-weight: 800; color: #fff; line-height: 1.2; }
.mb-title em { font-style: normal; color: var(--blue); }
.mb-stats { display: flex; gap: 20px; margin-top: 12px; flex-wrap: wrap; }
.mb-stat { }
.mb-stat-n { font-family: 'Sora', sans-serif; font-size: 18px; font-weight: 800; color: #fff; line-height: 1; }
.mb-stat-l { font-size: 9px; color: rgba(255,255,255,.45); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }

/* Responsive */
@media (max-width: 1024px) { .lp { flex: 0 0 40%; } }
@media (max-width: 768px) {
  .split { flex-direction: column; min-height: auto; }
  .lp { display: none; }
  .mobile-banner { display: block; }
  .rp { flex: none; width: 100%; padding: 28px clamp(16px, 5vw, 32px) 48px; min-height: auto; justify-content: flex-start; align-items: stretch; }
  .form-card { max-width: 100%; margin: 0; }
  .fc-title { font-size: 22px; }
  .frow { grid-template-columns: 1fr; gap: 0; }
  .role-grid { grid-template-columns: 1fr 1fr; }
  .otp-row { gap: 7px; }
  .otp-in { width: 42px; height: 50px; font-size: 18px; }
}
@media (max-width: 480px) {
  .top-bar { padding: 0 14px; }
  .role-grid { grid-template-columns: 1fr 1fr; }
  .otp-in { width: 38px; height: 46px; font-size: 16px; }
  .otp-row { gap: 5px; }
  .btn-row { flex-direction: column; }
  .btn-row .btn-back { flex: none; width: 100%; }
}
@media (max-width: 360px) {
  .role-grid { grid-template-columns: 1fr; }
  .otp-in { width: 36px; height: 42px; font-size: 15px; }
  .otp-row { gap: 4px; }
}
