:root{
  --black:#0a0a0a;
  --white:#ffffff;
  --page:#f4f4f4;
  --panel:#ffffff;
  --line:#dddddd;
  --text:#111111;
  --muted:#666666;
  --shadow:0 18px 45px rgba(0,0,0,.10);
  --soft-shadow:0 10px 28px rgba(0,0,0,.08);
}

*{
  box-sizing:border-box;
}

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

body{
  margin:0;
  font-family:"Segoe UI", Arial, Helvetica, sans-serif;
  color:var(--text);
  background:var(--page);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

/* =========================
   PAGE LAYOUT
========================= */

.login-page{
  min-height:100vh;
  min-height:100dvh;
  display:grid;
  grid-template-columns:minmax(430px, 1fr) minmax(430px, 1fr);
  background:var(--page);
}

/* =========================
   LEFT BRAND PANEL
========================= */

.brand-panel{
  position:relative;
  min-height:100vh;
  min-height:100dvh;
  padding:56px 52px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  overflow:hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(135deg, #050505 0%, #111111 100%);
  background-size:48px 48px, 48px 48px, auto;
}

.brand-grid{
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 25% 20%, rgba(255,255,255,.08), transparent 26%);
  pointer-events:none;
}

.brand-orb{
  position:absolute;
  border:1px solid rgba(255,255,255,.08);
  border-radius:50%;
  pointer-events:none;
}

.brand-orb-one{
  width:430px;
  height:430px;
  top:-150px;
  left:-120px;
}

.brand-orb-two{
  width:330px;
  height:330px;
  right:-110px;
  bottom:-100px;
}

.brand-content{
  position:relative;
  z-index:2;
  width:100%;
  max-width:620px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.brand-logo-wrap{
  width:280px;
  height:280px;
  border-radius:42px;
  background:#ffffff;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  margin:0 auto 36px;
  box-shadow:0 18px 38px rgba(0,0,0,.30);
}

.brand-logo{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

.brand-content h1{
  margin:0;
  max-width:100%;
  font-size:64px;
  line-height:1.02;
  font-weight:800;
  letter-spacing:-1.4px;
  color:#fff;
  text-align:center;
}

.brand-copy{
  margin:22px auto 28px;
  max-width:560px;
  font-size:16px;
  line-height:1.7;
  color:rgba(255,255,255,.78);
  text-align:center;
}

.brand-tags{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
}

.brand-tags span{
  min-height:36px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.06);
  color:#fff;
  display:inline-flex;
  align-items:center;
  font-size:12px;
  font-weight:700;
  white-space:nowrap;
}

/* =========================
   LOGIN PANEL
========================= */

.login-panel{
  min-height:100vh;
  min-height:100dvh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:32px;
  background:
    radial-gradient(circle at 80% 0%, rgba(255,255,255,.95), transparent 32%),
    linear-gradient(135deg, #fafafa 0%, #ededed 100%);
}

.login-card{
  width:100%;
  max-width:470px;
  padding:42px;
  border-radius:28px;
  background:var(--panel);
  border:1px solid rgba(0,0,0,.08);
  box-shadow:var(--shadow);
}

.mobile-brand{
  display:none;
  align-items:center;
  justify-content:center;
  margin-bottom:20px;
}

.mobile-logo{
  width:110px;
  height:110px;
  border-radius:22px;
  background:#fff;
  border:1px solid #e2e2e2;
  object-fit:contain;
  padding:8px;
}

.login-heading{
  margin-bottom:24px;
}

.small-title{
  margin:0 0 8px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:#5f5f5f;
}

.login-heading h2{
  margin:0;
  font-size:32px;
  line-height:1.15;
  font-weight:800;
  letter-spacing:-.6px;
  color:#000;
}

.login-heading p:last-child{
  margin:10px 0 0;
  font-size:14px;
  line-height:1.55;
  color:#666666;
}

/* =========================
   ALERTS
========================= */

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

.alert-success{
  color:#1d5f27;
  background:#eef8ef;
  border:1px solid #cae4ce;
}

.alert-error{
  color:#a91f1f;
  background:#fff0f0;
  border:1px solid #f0caca;
}

.alert-warning{
  color:#795400;
  background:#fff8e8;
  border:1px solid #ecdba8;
}

/* =========================
   FORM
========================= */

form{
  margin:0;
}

.field-group{
  margin-bottom:16px;
}

.field-group label{
  display:block;
  margin-bottom:8px;
  color:#111111;
  font-size:13px;
  font-weight:700;
}

.input-wrap{
  position:relative;
  display:flex;
  align-items:center;
}

.input-icon{
  position:absolute;
  left:15px;
  color:#707070;
  font-size:17px;
  font-weight:700;
  line-height:1;
  z-index:2;
}

.input-wrap input{
  width:100%;
  height:50px;
  padding:0 14px 0 44px;
  border-radius:14px;
  border:1px solid #d3d3d3;
  background:#fbfbfb;
  color:#111111;
  font-size:14px;
  font-weight:500;
  outline:none;
  transition:border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.input-wrap input::placeholder{
  color:#8b8b8b;
  font-weight:500;
}

.input-wrap input:focus{
  border-color:#111111;
  background:#ffffff;
  box-shadow:0 0 0 4px rgba(0,0,0,.06);
}

.password-wrap input{
  padding-right:78px;
}

.show-password-btn{
  position:absolute;
  right:7px;
  height:36px;
  min-width:64px;
  border:none;
  border-radius:11px;
  background:#000000;
  color:#ffffff;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
  transition:transform .2s ease, background .2s ease;
}

.show-password-btn:hover{
  background:#1b1b1b;
  transform:translateY(-1px);
}

.input-wrap input:disabled,
.show-password-btn:disabled{
  opacity:.65;
  cursor:not-allowed;
}

/* =========================
   LOGIN BUTTON
========================= */

.login-button{
  width:100%;
  height:52px;
  margin-top:4px;
  border:none;
  border-radius:14px;
  background:#000000;
  color:#ffffff;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  font-size:14px;
  font-weight:800;
  cursor:pointer;
  box-shadow:var(--soft-shadow);
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.login-button:hover{
  background:#111111;
  transform:translateY(-1px);
  box-shadow:0 14px 30px rgba(0,0,0,.15);
}

.login-button:disabled{
  opacity:.65;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
}

.login-button strong{
  font-size:16px;
  line-height:1;
}

.login-button.is-loading{
  opacity:.9;
}

/* =========================
   FOOTER
========================= */

.login-footer-note{
  margin-top:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  color:#5d5d5d;
  font-size:12px;
  font-weight:700;
  text-align:center;
  line-height:1.4;
}

.lock-dot{
  width:9px;
  height:9px;
  border-radius:50%;
  background:#000000;
  box-shadow:0 0 0 5px rgba(0,0,0,.08);
  flex:0 0 auto;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px){
  .login-page{
    grid-template-columns:1fr;
  }

  .brand-panel{
    display:none;
  }

  .login-panel{
    min-height:100vh;
    min-height:100dvh;
    padding:24px;
  }

  .login-card{
    max-width:470px;
    padding:34px 28px;
  }

  .mobile-brand{
    display:flex;
  }
}

@media (max-width: 520px){
  .login-panel{
    padding:14px;
  }

  .login-card{
    padding:26px 20px;
    border-radius:20px;
  }

  .mobile-logo{
    width:96px;
    height:96px;
  }

  .login-heading h2{
    font-size:28px;
  }

  .input-wrap input{
    height:48px;
    font-size:16px;
  }

  .login-button{
    height:50px;
  }
}


/* =========================
   MFA LOGIN
========================= */

.login-field-note{
  display:block;
  margin-top:8px;
  color:#707070;
  font-size:11px;
  font-weight:600;
  line-height:1.45;
}

.mfa-cancel-form{
  margin-top:12px;
  text-align:center;
}

.mfa-cancel-button{
  border:0;
  background:transparent;
  color:#5d5d5d;
  font-size:12px;
  font-weight:800;
  text-decoration:underline;
  cursor:pointer;
}

.mfa-cancel-button:hover{
  color:#111111;
}
