:root {
  --auth-primary: #185cff;
  --auth-bg: #f5f7fc;
  --auth-card: #ffffff;
  --auth-text: #10213f;
  --auth-muted: #71809a;
  --auth-border: #e3e9f3;
  --auth-soft: #edf3ff;
}

*{box-sizing:border-box}
html,body{min-height:100%;}
body.bd-auth-page{
  margin:0;
  min-height:100vh;
  font-family:Inter,"Segoe UI",Arial,sans-serif;
  color:var(--auth-text);
  background:var(--auth-bg);
}
.bd-auth-wrap{
  min-height:100vh;
  display:flex;
  justify-content:center;
  align-items:flex-start;
  padding:34px 16px 40px;
}
.bd-auth-shell{
  width:min(720px,100%);
  display:block;
}
.bd-auth-brand{
  text-align:center;
  padding:6px 10px 22px;
}
.bd-auth-avatar{
  width:92px;height:92px;border-radius:50%;
  margin:0 auto 18px;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,var(--auth-primary),#2f76ff);
  color:#fff;
  border:8px solid rgba(255,255,255,.9);
  box-shadow:0 12px 35px rgba(20,86,232,.20);
  font-size:34px;font-weight:900;
}
.bd-auth-badge{display:none}
.bd-auth-brand h1{
  margin:0 0 10px;
  color:var(--auth-primary);
  font-size:clamp(36px,7vw,52px);
  line-height:1;
  font-weight:950;
  letter-spacing:-1.5px;
}
.bd-auth-brand p{
  margin:0;
  color:#66758e;
  font-size:18px;
  font-weight:700;
}
.bd-auth-benefits{display:none}
.bd-auth-pane{
  background:#fff;
  border:1px solid var(--auth-border);
  border-radius:30px;
  padding:34px 34px 30px;
  box-shadow:0 18px 50px rgba(20,43,91,.10);
}
.bd-auth-pane h2{
  margin:0 0 7px;
  color:var(--auth-text);
  font-size:25px;
  font-weight:900;
  text-align:center;
}
.bd-auth-pane > p{
  margin:0 0 24px;
  color:var(--auth-muted);
  text-align:center;
  font-size:14px;
  font-weight:600;
}
.bd-auth-pane .form-group{margin-bottom:14px}
.bd-auth-pane label{
  display:block;
  margin:0 0 7px;
  color:#53647f;
  font-size:12px;
  font-weight:800;
}
.bd-auth-pane .form-control,
.bd-auth-pane select.form-control{
  width:100%;
  min-height:54px;
  padding:0 16px;
  border:1px solid #dce5f1;
  border-radius:16px;
  background:#f8faff;
  color:var(--auth-text);
  font-size:15px;
  outline:none;
  box-shadow:none;
}
.bd-auth-pane .form-control:focus,
.bd-auth-pane select.form-control:focus{
  border-color:var(--auth-primary);
  box-shadow:0 0 0 4px rgba(24,92,255,.09);
}
.bd-auth-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}
.bd-auth-grid.full{grid-template-columns:1fr}
.bd-auth-grid .form-group[style*="grid-column"]{grid-column:1/-1!important}
.bd-auth-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:4px 0 18px}
.bd-auth-check{display:inline-flex!important;align-items:center;gap:7px!important;margin:0!important;color:var(--auth-muted)!important;font-size:12px!important;font-weight:700!important}
.bd-auth-check input{accent-color:var(--auth-primary)}
.bd-auth-link,.bd-auth-link:hover{color:var(--auth-primary);text-decoration:none;font-weight:800}
.bd-auth-btn{
  width:100%;
  min-height:56px;
  border:0;
  border-radius:17px;
  color:#fff;
  background:linear-gradient(135deg,var(--auth-primary),#3d82ff);
  box-shadow:0 14px 30px rgba(24,92,255,.20);
  font-size:16px;
  font-weight:900;
  cursor:pointer;
}
.bd-auth-btn:disabled{opacity:.65;cursor:wait}
.bd-auth-bottom{margin-top:22px;color:var(--auth-muted);text-align:center;font-size:15px}
.bd-auth-otp{display:grid;grid-template-columns:1fr auto;gap:10px}
.bd-auth-outline{
  min-height:54px;padding:0 16px;border-radius:16px;
  border:1px solid var(--auth-primary);background:#fff;color:var(--auth-primary);font-weight:800;
}
.bd-auth-flow{display:none}.bd-auth-flow.active{display:block}
.bd-auth-pane small{color:var(--auth-muted)!important}
.bd-auth-pane .bd-auth-icon-field{position:relative}
.bd-auth-pane .bd-auth-icon-field i{position:absolute;left:16px;top:18px;color:var(--auth-primary);z-index:1}
.bd-auth-pane .bd-auth-icon-field input{padding-left:46px}

/* All six configured auth variants intentionally share one design language. */
body.auth-v2,body.auth-v3,body.auth-v4,body.auth-v5,body.auth-v6{background:var(--auth-bg)}
body.auth-v2 .bd-auth-brand,body.auth-v3 .bd-auth-brand,body.auth-v4 .bd-auth-brand,body.auth-v5 .bd-auth-brand,body.auth-v6 .bd-auth-brand{background:transparent;color:inherit}
body.auth-v2 .bd-auth-pane,body.auth-v3 .bd-auth-pane,body.auth-v4 .bd-auth-pane,body.auth-v5 .bd-auth-pane,body.auth-v6 .bd-auth-pane{background:#fff;color:var(--auth-text)}

@media(max-width:640px){
  .bd-auth-wrap{padding:22px 12px 30px}
  .bd-auth-avatar{width:82px;height:82px;font-size:30px;margin-bottom:14px}
  .bd-auth-brand h1{font-size:40px}
  .bd-auth-brand p{font-size:15px}
  .bd-auth-pane{padding:25px 18px 24px;border-radius:24px}
  .bd-auth-pane h2{font-size:22px}
  .bd-auth-grid{grid-template-columns:1fr}
  .bd-auth-grid .form-group[style*="grid-column"]{grid-column:auto!important}
  .bd-auth-otp{grid-template-columns:1fr}
  .bd-auth-actions{align-items:flex-start;flex-direction:column}
}
