:root{
  --bg:#020617;
  --panel:rgba(8,18,34,.76);
  --panel2:rgba(10,22,42,.92);
  --line:rgba(125,180,255,.20);
  --line2:rgba(125,180,255,.36);
  --text:#f7faff;
  --muted:#9fb0c8;
  --soft:#d8e6fb;
  --blue:#3b82f6;
  --cyan:#67e8f9;
  --ok:#22c55e;
  --danger:#fb7185;
}

*{box-sizing:border-box}

html,body{
  margin:0;
  min-height:100%;
}

body{
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 16% 18%,rgba(37,99,235,.28),transparent 32%),
    radial-gradient(circle at 85% 76%,rgba(103,232,249,.14),transparent 30%),
    linear-gradient(135deg,#020617 0%,#071426 48%,#020617 100%);
  overflow-x:hidden;
}

.flow-shell{
  position:relative;
  min-height:100vh;
  width:100%;
  display:grid;
  grid-template-columns:minmax(360px,1.05fr) minmax(360px,.72fr);
  align-items:center;
  gap:clamp(32px,5vw,92px);
  padding:clamp(28px,5vw,88px);
  isolation:isolate;
}

.flow-shell:before{
  content:"";
  position:fixed;
  inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.026) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.026) 1px,transparent 1px);
  background-size:48px 48px;
  mask-image:radial-gradient(circle at center,#000,transparent 72%);
  opacity:.38;
  z-index:-3;
  pointer-events:none;
}

.brand{
  position:relative;
  max-width:860px;
  padding:clamp(14px,3vw,42px);
}

.brand:before{
  content:"";
  position:absolute;
  width:430px;
  height:430px;
  left:0;
  top:8%;
  border-radius:999px;
  background:radial-gradient(circle,rgba(59,130,246,.22),transparent 64%);
  filter:blur(8px);
  z-index:-1;
}

.logo-box{
  width:clamp(116px,12vw,220px);
  height:clamp(116px,12vw,220px);
  display:grid;
  place-items:center;
  margin-bottom:clamp(26px,4vw,54px);
  border:1px solid rgba(125,180,255,.18);
  border-radius:34px;
  background:linear-gradient(145deg,rgba(255,255,255,.08),rgba(255,255,255,.015)),rgba(4,13,27,.48);
  box-shadow:0 28px 80px rgba(37,99,235,.18),inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter:blur(20px);
  overflow:hidden;
}

.logo-box img{
  max-width:78%;
  max-height:78%;
  object-fit:contain;
  filter:drop-shadow(0 18px 38px rgba(96,165,250,.24));
}

.logo-fallback{
  width:100%;
  height:100%;
  display:none;
  place-items:center;
  font-size:clamp(42px,5vw,82px);
  font-weight:850;
  letter-spacing:-.08em;
  color:#eff6ff;
  background:radial-gradient(circle at 35% 30%,rgba(103,232,249,.2),transparent 42%);
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:var(--cyan);
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.18em;
  text-transform:uppercase;
}

.eyebrow:before{
  content:"";
  width:34px;
  height:1px;
  background:linear-gradient(90deg,var(--cyan),transparent);
}

h1{
  max-width:840px;
  margin:18px 0 18px;
  font-size:clamp(2.9rem,6.1vw,7.35rem);
  line-height:.9;
  letter-spacing:-.08em;
}

.brand p{
  max-width:620px;
  margin:0;
  color:var(--soft);
  font-size:clamp(1rem,1.34vw,1.28rem);
  line-height:1.75;
}

.metrics{
  display:grid;
  grid-template-columns:repeat(3,minmax(130px,1fr));
  gap:14px;
  max-width:720px;
  margin-top:clamp(34px,5vw,66px);
}

.metrics div{
  min-height:92px;
  padding:18px;
  border:1px solid rgba(125,180,255,.14);
  border-radius:24px;
  background:rgba(8,18,34,.48);
  backdrop-filter:blur(18px);
}

.metrics strong{
  display:block;
  margin-bottom:8px;
  font-size:.96rem;
}

.metrics span{
  color:var(--muted);
  font-size:.86rem;
  line-height:1.4;
}

.login-card{
  width:min(100%,488px);
  justify-self:center;
  padding:clamp(24px,3vw,38px);
  border:1px solid var(--line);
  border-radius:34px;
  background:linear-gradient(150deg,rgba(255,255,255,.09),rgba(255,255,255,.025)),var(--panel);
  box-shadow:0 30px 90px rgba(0,0,0,.56),inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter:blur(28px);
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:8px 12px;
  border:1px solid rgba(103,232,249,.18);
  border-radius:999px;
  color:#dff8ff;
  background:rgba(14,165,233,.08);
  font-size:.78rem;
  font-weight:700;
}

.dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background:var(--ok);
  box-shadow:0 0 18px rgba(34,197,94,.8);
}

.login-title{
  margin:28px 0;
}

.login-title h2{
  margin:0 0 10px;
  font-size:clamp(2rem,2.7vw,2.75rem);
  line-height:1;
  letter-spacing:-.06em;
}

.login-title p{
  margin:0;
  color:var(--muted);
  line-height:1.65;
  font-size:.98rem;
}

form{
  display:grid;
  gap:18px;
}

label{
  display:grid;
  gap:8px;
}

label span{
  color:var(--soft);
  font-size:.86rem;
  font-weight:700;
}

input[type=email],input[type=password]{
  width:100%;
  height:54px;
  padding:0 16px;
  border:1px solid rgba(125,180,255,.16);
  border-radius:17px;
  outline:none;
  background:rgba(2,8,23,.72);
  color:var(--text);
  font-size:1rem;
  transition:.2s ease;
}

input::placeholder{color:rgba(159,176,200,.58)}

input:focus{
  border-color:rgba(103,232,249,.55);
  box-shadow:0 0 0 4px rgba(14,165,233,.12);
  background:rgba(2,8,23,.92);
}

.options{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-top:2px;
}

.remember{
  display:flex;
  align-items:center;
  gap:9px;
  color:var(--muted);
  font-size:.82rem;
}

.remember input{accent-color:var(--blue)}

.options a{
  color:var(--cyan);
  font-size:.82rem;
  text-decoration:none;
}

.options a:hover{text-decoration:underline}

button{
  height:58px;
  margin-top:6px;
  border:0;
  border-radius:18px;
  cursor:pointer;
  color:#fff;
  font-size:1rem;
  font-weight:850;
  background:linear-gradient(135deg,rgba(103,232,249,.95),rgba(37,99,235,.95) 45%,rgba(29,78,216,.98));
  box-shadow:0 20px 44px rgba(37,99,235,.3);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  transition:.18s ease;
}

button:hover{
  transform:translateY(-1px);
  filter:brightness(1.06);
  box-shadow:0 26px 56px rgba(37,99,235,.42);
}

button svg{
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.status{
  min-height:20px;
  margin:0;
  color:var(--muted);
  font-size:.84rem;
  line-height:1.5;
}

.status.error{color:var(--danger)}

.footer{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:30px;
  padding-top:22px;
  border-top:1px solid rgba(125,180,255,.12);
  color:rgba(215,227,248,.68);
  font-size:.8rem;
}

@media (min-width:1800px){
  .flow-shell{
    max-width:1880px;
    margin:0 auto;
  }
  .login-card{width:520px}
}

@media (max-width:1180px){
  .flow-shell{
    grid-template-columns:1fr;
    gap:28px;
    padding:38px 22px;
  }
  .brand{
    max-width:760px;
    margin:0 auto;
    text-align:center;
    padding-bottom:0;
  }
  .eyebrow{justify-content:center}
  .eyebrow:before{display:none}
  .brand p{margin:0 auto}
  .logo-box{
    margin-left:auto;
    margin-right:auto;
    margin-bottom:24px;
  }
  .metrics{
    margin-left:auto;
    margin-right:auto;
  }
}

@media (max-width:720px){
  body{
    background:radial-gradient(circle at 50% 8%,rgba(37,99,235,.26),transparent 36%),linear-gradient(180deg,#020617 0%,#07111f 58%,#020617 100%);
  }
  .flow-shell{
    min-height:100svh;
    padding:22px 14px;
    gap:20px;
    align-content:center;
  }
  .brand{padding:8px 4px 0}
  .logo-box{
    width:96px;
    height:96px;
    border-radius:24px;
    margin-bottom:18px;
  }
  h1{
    font-size:clamp(2.24rem,13vw,3.6rem);
    line-height:.92;
    margin:12px 0;
  }
  .brand p{
    font-size:.95rem;
    line-height:1.58;
  }
  .metrics{display:none}
  .login-card{
    width:100%;
    max-width:460px;
    border-radius:28px;
    padding:22px;
  }
  .login-title{margin:22px 0}
  .login-title h2{font-size:1.85rem}
  .options{
    align-items:flex-start;
    flex-direction:column;
    gap:10px;
  }
  input[type=email],input[type=password],button{height:54px}
  .footer{
    justify-content:center;
    text-align:center;
  }
}

@media (max-width:380px){
  .flow-shell{padding:16px 10px}
  .login-card{padding:18px}
  h1{font-size:2.05rem}
}
