:root{
  --auth-blue:#2563eb;
  --auth-blue-2:#0f4fd7;
  --auth-text:#0f172a;
  --auth-muted:#667085;
  --auth-line:#dbe4f0;
  --auth-soft:#f4f7fb;
  --auth-card:#ffffff;
  --auth-shadow:0 16px 42px rgba(15,23,42,.11);
}

body{
  background:
    radial-gradient(900px 420px at 18% -10%, rgba(37,99,235,.24), transparent 60%),
    linear-gradient(180deg,#0b1220 0%,#071225 100%);
}

.auth-app{
  background:linear-gradient(180deg,#eef5ff 0%,#f6f9ff 44%,#ffffff 100%);
  overflow-x:hidden;
  overflow-y:auto;
}

@media (min-width:768px){
  body{align-items:center;padding:18px 0;}
  .auth-app{
    min-height:calc(100vh - 36px);
    border-radius:28px;
    box-shadow:0 30px 88px rgba(0,0,0,.36);
  }
}

.auth-shell{
  min-height:100vh;
  padding:14px 14px 22px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:12px;
}

.auth-hero{
  min-height:194px;
  border-radius:8px;
  overflow:hidden;
  position:relative;
  background:#0b3e9d url("../img/auth-banner.png") center/cover no-repeat;
  box-shadow:0 18px 38px rgba(37,99,235,.20);
}

.auth-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(5,31,88,.72) 0%,rgba(5,31,88,.38) 47%,rgba(5,31,88,.02) 100%);
}

.auth-hero-content{
  position:relative;
  z-index:1;
  min-height:194px;
  padding:14px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.auth-wordmark{
  width:156px;
  height:42px;
  object-fit:contain;
  object-position:left center;
  display:block;
}

.auth-brand-sub{
  margin-top:2px;
  color:#bfd3ff;
  font-size:12px;
  font-weight:800;
}

.auth-copy{
  max-width:58%;
}

.auth-copy h1{
  margin:0;
  color:#fff;
  font-size:20px;
  line-height:1.22;
  font-weight:950;
  letter-spacing:0;
}

.auth-copy p{
  margin:7px 0 0;
  color:#e7f0ff;
  font-size:12px;
  line-height:1.48;
  font-weight:750;
}

.auth-card{
  background:var(--auth-card);
  border:1px solid var(--auth-line);
  border-radius:8px;
  padding:15px;
  box-shadow:var(--auth-shadow);
}

.auth-title{
  margin:0;
  color:var(--auth-text);
  font-size:22px;
  line-height:1.15;
  font-weight:950;
}

.auth-subtitle{
  margin:5px 0 0;
  color:var(--auth-muted);
  font-size:12px;
  line-height:1.48;
  font-weight:700;
}

.auth-segment{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  padding:4px;
  margin:14px 0;
  border-radius:8px;
  background:#eef4ff;
  border:1px solid #dce8ff;
}

.auth-segment a{
  min-height:40px;
  border-radius:7px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  color:#5f6f85;
  font-size:13px;
  font-weight:900;
}

.auth-segment a.active{
  background:#fff;
  color:var(--auth-blue);
  box-shadow:0 8px 18px rgba(37,99,235,.13);
}

.auth-form{
  display:flex;
  flex-direction:column;
  gap:11px;
}

.auth-label{
  display:block;
  margin-bottom:7px;
  color:#344054;
  font-size:12px;
  font-weight:900;
}

.auth-input{
  width:100%;
  height:50px;
  border-radius:8px;
  border:1px solid var(--auth-line);
  background:#f8fbff;
  color:var(--auth-text);
  padding:0 13px;
  outline:0;
  font-size:15px;
  font-weight:750;
}

.auth-input::placeholder{color:#98a2b3;font-weight:750;}
.auth-input:focus{
  border-color:rgba(37,99,235,.65);
  box-shadow:0 0 0 4px rgba(37,99,235,.11);
  background:#fff;
}

.auth-password{
  position:relative;
}

.auth-password .auth-input{
  padding-right:48px;
}

.auth-eye{
  position:absolute;
  right:8px;
  bottom:7px;
  width:36px;
  height:36px;
  border:0;
  border-radius:8px;
  background:#edf3ff;
  color:#2563eb;
  display:flex;
  align-items:center;
  justify-content:center;
}

.auth-eye svg{
  width:18px;
  height:18px;
}

.auth-btn{
  width:100%;
  min-height:50px;
  border:0;
  border-radius:8px;
  background:linear-gradient(180deg,var(--auth-blue),var(--auth-blue-2));
  color:#fff;
  font-size:15px;
  font-weight:950;
  box-shadow:0 14px 24px rgba(37,99,235,.24);
}

.auth-btn:active{transform:scale(.99);}

.auth-btn.secondary{
  background:#edf3ff;
  color:#2563eb;
  box-shadow:none;
  border:1px solid #dbe8ff;
}

.auth-alert{
  margin-bottom:12px;
  border-radius:8px;
  padding:11px 12px;
  font-size:13px;
  line-height:1.45;
  font-weight:800;
}

.auth-alert.error{
  background:#fff1f2;
  color:#e11d48;
  border:1px solid #fecdd3;
}

.auth-alert.success{
  background:#ecfdf5;
  color:#059669;
  border:1px solid #bbf7d0;
}

.auth-otp-box{
  border:1px solid #dbe8ff;
  background:#f5f9ff;
  border-radius:8px;
  padding:12px;
  margin-bottom:12px;
}

.auth-otp-box strong{
  color:#2563eb;
}

.auth-otp-text{
  margin:0;
  color:#52637a;
  font-size:12px;
  line-height:1.55;
  font-weight:750;
}

.auth-support{
  position:relative;
  min-height:132px;
  margin-top:13px;
  padding:12px;
  border-radius:8px;
  overflow:hidden;
  background:#2563eb url("../img/support-bg.png") center/cover no-repeat;
  box-shadow:0 14px 28px rgba(37,99,235,.20);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:12px;
}

.auth-support::before{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(4,28,86,.58);
}

.auth-support-head,
.auth-support-actions{
  position:relative;
  z-index:1;
}

.auth-support-head{
  display:flex;
  align-items:center;
  gap:11px;
}

.auth-support-icon{
  width:38px;
  height:38px;
  border-radius:8px;
  background:#fff;
  color:#2563eb;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}

.auth-support-icon svg{
  width:21px;
  height:21px;
}

.auth-support-title{
  margin:0;
  color:#fff;
  font-size:17px;
  line-height:1.2;
  font-weight:950;
}

.auth-support-text{
  margin:3px 0 0;
  color:#eaf1ff;
  font-size:12px;
  line-height:1.45;
  font-weight:750;
}

.auth-support-actions{
  display:flex;
  gap:8px;
}

.auth-support-btn{
  min-height:38px;
  flex:1;
  border-radius:8px;
  background:#fff;
  border:1px solid rgba(255,255,255,.45);
  color:#2563eb;
  text-decoration:none;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:0 13px;
  font-size:13px;
  font-weight:950;
}

.auth-support-btn::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:999px;
  background:#10b981;
  box-shadow:0 0 0 4px rgba(16,185,129,.13);
}

@media (max-width:360px){
  .auth-shell{padding-left:10px;padding-right:10px;}
  .auth-copy{max-width:64%;}
  .auth-copy h1{font-size:18px;}
  .auth-card{padding:13px;}
}
