:root {
  --ink:#171a38;
  --muted:#66708a;
  --line:#e9e7f4;
  --surface:#fff;
  --soft:#f7f4ff;
  --primary:#6657f5;
  --primary-2:#c64df2;
  --success:#218a58;
  --orange:#ff9b62;
  --gradient:linear-gradient(135deg,#5b6ff5 0%,#8d63f6 48%,#c451ef 100%);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}

body{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  background:#f7f8fc;
}

a{color:inherit}
button,input{font:inherit}
.muted{color:var(--muted);line-height:1.65}

/* LOGIN */

.auth-page{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:22px;
  background:var(--gradient);
  position:relative;
  overflow:hidden;
}

.auth-page:before,
.auth-page:after{
  content:"";
  position:absolute;
  border-radius:50%;
  background:rgba(255,255,255,.08);
  pointer-events:none;
}

.auth-page:before{
  width:520px;
  height:520px;
  left:-220px;
  top:-170px;
}

.auth-page:after{
  width:480px;
  height:480px;
  right:-180px;
  bottom:-180px;
}

.auth-shell{
  width:min(100%,1080px);
  min-height:650px;
  display:grid;
  grid-template-columns:1.02fr .98fr;
  background:var(--surface);
  border-radius:28px;
  overflow:hidden;
  box-shadow:0 30px 80px rgba(33,28,90,.22);
  position:relative;
  z-index:1;
}

.brand-panel{
  padding:64px;
  background:var(--gradient);
  color:#fff;
  display:flex;
  flex-direction:column;
  justify-content:center;
  position:relative;
  overflow:hidden;
}

.brand-panel:after{
  content:"";
  position:absolute;
  width:420px;
  height:420px;
  border-radius:50%;
  border:70px solid rgba(255,255,255,.07);
  right:-210px;
  bottom:-180px;
}

.brand-mark,
.brand{
  font-weight:800;
  letter-spacing:-.045em;
  font-size:26px;
  text-decoration:none;
}

.brand-mark span,
.brand span,
.mobile-brand span{
  font-weight:400;
}

.eyebrow,
.card-label{
  font-size:11px;
  letter-spacing:.14em;
  font-weight:800;
  text-transform:uppercase;
}

.brand-panel .eyebrow{
  margin-top:72px;
  opacity:.72;
}

.brand-panel h1{
  font-size:clamp(40px,5vw,62px);
  line-height:1.02;
  letter-spacing:-.05em;
  margin:14px 0 20px;
}

.brand-panel .muted{
  color:rgba(255,255,255,.78);
  max-width:470px;
}

.login-card{
  padding:64px clamp(30px,5vw,76px);
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.mobile-brand{
  display:none;
  color:var(--primary);
  font-size:23px;
  font-weight:800;
  letter-spacing:-.04em;
}

.login-card h2{
  font-size:36px;
  letter-spacing:-.04em;
  margin:0 0 8px;
}

form{margin-top:32px}

label{
  display:block;
  font-size:13px;
  font-weight:700;
  margin-bottom:8px;
}

.label-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:22px;
}

.label-row label{margin:0}

.label-row a{
  font-size:12px;
  color:var(--primary);
  font-weight:700;
}

input{
  width:100%;
  height:52px;
  border:1px solid #dddff0;
  border-radius:12px;
  padding:0 15px;
  font-size:14px;
  outline:none;
  background:#fff;
  transition:.2s;
}

input:focus{
  border-color:#887cf8;
  box-shadow:0 0 0 4px rgba(102,87,245,.11);
}

/* BUTTONS */

.primary-btn,
.secondary-btn,
.ghost-btn{
  border-radius:11px;
  min-height:46px;
  padding:0 18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  cursor:pointer;
  font:inherit;
  font-weight:750;
  border:1px solid transparent;
  transition:transform .15s,box-shadow .15s,opacity .15s;
}

.primary-btn{
  background:linear-gradient(90deg,#6959f5,#c24de9);
  color:#fff;
  box-shadow:0 9px 22px rgba(102,87,245,.22);
}

.primary-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 25px rgba(102,87,245,.27);
}

.secondary-btn{
  background:#fff;
  color:var(--primary);
  border-color:#d9d3fb;
}

.ghost-btn{
  background:transparent;
  border-color:#dddff0;
  color:var(--ink);
  min-height:38px;
}

form .primary-btn{
  width:100%;
  margin-top:28px;
}

.small{
  min-height:40px;
  font-size:13px;
}

.form-message{
  min-height:20px;
  font-size:13px;
  color:#b42318;
}

.login-note{
  margin-top:42px;
  font-size:12px;
  color:#9197ab;
}

/* DASHBOARD */

.topbar{
  height:74px;
  background:rgba(255,255,255,.96);
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 5vw;
  position:sticky;
  top:0;
  z-index:5;
  backdrop-filter:blur(12px);
}

.topbar .brand{color:var(--primary)}

.topbar nav{
  display:flex;
  align-items:center;
  gap:16px;
}

.nav-name{
  font-size:13px;
  color:var(--muted);
}

.dashboard{
  width:min(1160px,92%);
  margin:0 auto;
  padding:52px 0 90px;
}

.welcome{
  padding:34px 38px;
  border-radius:22px;
  background:linear-gradient(110deg,#eeeaff 0%,#f8f0ff 55%,#eeeaff 100%);
  border:1px solid #e5defd;
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:24px;
  margin-bottom:28px;
  overflow:hidden;
  position:relative;
}

.welcome:after{
  content:"";
  position:absolute;
  width:230px;
  height:230px;
  border-radius:50%;
  background:rgba(198,77,242,.08);
  right:-70px;
  top:-100px;
}

.welcome h1{
  margin:8px 0 8px;
  font-size:clamp(34px,5vw,52px);
  letter-spacing:-.05em;
}

.welcome .eyebrow,
.verification-panel .eyebrow{
  color:#7469b6;
  margin:0;
}

.status-pill{
  padding:9px 12px;
  background:#eef8f1;
  color:var(--success);
  border-radius:999px;
  font-size:12px;
  font-weight:750;
  white-space:nowrap;
  position:relative;
  z-index:1;
}

.status-pill span{
  width:7px;
  height:7px;
  display:inline-block;
  border-radius:50%;
  background:#2f9e63;
  margin-right:6px;
}

.document-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}

.document-card,
.verification-panel,
.info-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  padding:26px;
  box-shadow:0 8px 28px rgba(32,31,75,.045);
}

.document-card.featured{
  box-shadow:0 14px 35px rgba(102,87,245,.10);
}

.card-icon{
  width:48px;
  height:48px;
  border-radius:13px;
  display:grid;
  place-items:center;
  background:#f0edff;
  color:var(--primary);
  font-size:10px;
  font-weight:850;
  letter-spacing:.08em;
}

.document-card h2{
  margin:11px 0 7px;
  font-size:21px;
  letter-spacing:-.03em;
}

.card-label{
  color:#858ca4;
  margin:20px 0 0;
}

.button-row{
  display:flex;
  gap:9px;
  flex-wrap:wrap;
  margin-top:22px;
}

/* VERIFICATION */

.verification-panel{
  margin-top:16px;
  display:grid;
  grid-template-columns:1fr auto;
  gap:30px;
  align-items:center;
}

.verification-panel h2{
  margin:8px 0;
  font-size:23px;
  letter-spacing:-.03em;
}

.verification-box{
  min-width:270px;
  padding:19px;
  border:1px solid #e1dcf7;
  background:#faf9ff;
  border-radius:13px;
  display:grid;
  gap:7px;
}

.verification-box span{
  color:var(--muted);
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.1em;
}

.verification-box strong{font-size:15px}

.verification-box a{
  color:var(--primary);
  font-size:12px;
  font-weight:750;
  margin-top:8px;
}

/* ID / PAYSLIP */

.feature-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:16px;
  margin-top:16px;
}

.section-heading{margin-bottom:18px}

.section-heading h2{
  margin:4px 0;
  font-size:22px;
  letter-spacing:-.03em;
}

.upload-zone{
  border:1.5px dashed #c9c3f2;
  background:#faf9ff;
  border-radius:15px;
  padding:22px;
}

.upload-zone input[type=file]{
  height:auto;
  padding:10px;
  background:#fff;
}

.checkbox-row{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin:16px 0;
  font-size:13px;
  line-height:1.5;
}

.checkbox-row input{
  width:18px;
  height:18px;
  flex:0 0 18px;
  margin-top:1px;
  accent-color:var(--primary);
}

.unavailable{
  background:#f1f2f6;
  color:#7e8495;
  box-shadow:none;
  cursor:not-allowed;
}

.badge{
  display:inline-flex;
  padding:6px 9px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  background:#fff1e8;
  color:#d66b2d;
}

.success-note{
  padding:11px 13px;
  border-radius:11px;
  background:#eef8f1;
  color:#237a4b;
  font-size:12px;
}

.info-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
  margin-top:16px;
}

.info-card h3{
  margin:0 0 8px;
  font-size:15px;
}

.info-card p{
  margin:0;
  font-size:13px;
}

/* RESPONSIVE */

@media(max-width:900px){
  .document-grid{grid-template-columns:repeat(2,1fr)}
  .feature-grid{grid-template-columns:1fr}
}

@media(max-width:760px){
  .auth-shell{
    grid-template-columns:1fr;
    min-height:auto;
  }

  .brand-panel{display:none}

  .login-card{padding:42px 26px}

  .mobile-brand{
    display:block;
    margin-bottom:42px;
  }

  .document-grid,
  .verification-panel,
  .info-grid{
    grid-template-columns:1fr;
  }

  .welcome{
    align-items:flex-start;
    flex-direction:column;
    padding:28px 24px;
  }

  .topbar{padding:0 18px}
  .nav-name{display:none}

  .dashboard{
    width:calc(100% - 28px);
    padding-top:28px;
  }

  .verification-box{min-width:0}
}

@media(max-width:420px){
  .auth-page{padding:0}

  .auth-shell{
    border-radius:0;
    min-height:100vh;
  }

  .login-card{padding:34px 20px}

  .dashboard{width:calc(100% - 20px)}

  .button-row{flex-direction:column}

  .button-row .primary-btn,
  .button-row .secondary-btn{
    width:100%;
  }
}
