*{
  box-sizing:border-box;
}

:root{
  --bg:#eef5f3;
  --panel:#ffffff;
  --text:#123f3a;
  --muted:#718581;
  --line:#d9e6e3;
  --brand:#1f6b64;
  --brand-dark:#174e49;
  --brand-soft:#e9f5f2;
  --danger:#c24d4d;
  --danger-bg:#fff3f3;
  --shadow:0 20px 50px rgba(28,76,70,.10);
}

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

body.login-page{
  min-height:100vh;
  font-family:Inter, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 18% 20%, rgba(58,143,132,.09), transparent 28%),
    radial-gradient(circle at 85% 80%, rgba(58,143,132,.07), transparent 30%),
    var(--bg);
  color:var(--text);
}

.login-shell{
  min-height:100vh;
  display:grid;
  grid-template-columns:minmax(360px, .92fr) minmax(520px, 1.08fr);
}

.login-brand-panel{
  position:relative;
  overflow:hidden;
  padding:54px 58px;
  background:
    linear-gradient(145deg, rgba(17,74,68,.98), rgba(29,105,96,.96)),
    #1e675f;
  color:#fff;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.login-brand-panel::before{
  content:"";
  position:absolute;
  inset:auto -120px -120px auto;
  width:360px;
  height:360px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:50%;
  box-shadow:
    0 0 0 70px rgba(255,255,255,.025),
    0 0 0 140px rgba(255,255,255,.018);
}

.login-brand-panel::after{
  content:"";
  position:absolute;
  top:0;
  right:0;
  width:1px;
  height:100%;
  background:rgba(255,255,255,.12);
}

.brand-wrap{
  position:relative;
  z-index:1;
  max-width:520px;
}

.brand-logo{
  width:188px;
  max-height:74px;
  object-fit:contain;
  object-position:left center;
  margin-bottom:54px;
  filter:brightness(0) invert(1);
}

.brand-eyebrow,
.login-eyebrow{
  font-size:11px;
  letter-spacing:2px;
  font-weight:800;
}

.brand-eyebrow{
  color:#a9d9d3;
}

.brand-wrap h1{
  margin:13px 0 16px;
  max-width:480px;
  font-size:40px;
  line-height:1.08;
  letter-spacing:-1.2px;
  font-weight:700;
}

.brand-wrap > p{
  margin:0;
  max-width:470px;
  color:rgba(255,255,255,.76);
  font-size:15px;
  line-height:1.7;
}

.brand-status{
  margin-top:46px;
  display:flex;
  align-items:center;
  gap:13px;
  padding:16px 18px;
  width:max-content;
  max-width:100%;
  border:1px solid rgba(255,255,255,.16);
  border-radius:14px;
  background:rgba(255,255,255,.07);
  backdrop-filter:blur(8px);
}

.status-dot{
  width:11px;
  height:11px;
  border-radius:50%;
  background:#7fe2b2;
  box-shadow:0 0 0 5px rgba(127,226,178,.12);
  flex:0 0 auto;
}

.brand-status div{
  display:grid;
  gap:3px;
}

.brand-status strong{
  font-size:12px;
}

.brand-status small{
  color:rgba(255,255,255,.65);
  font-size:10px;
}

.brand-foot{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  gap:9px;
  font-size:10px;
  color:rgba(255,255,255,.55);
  letter-spacing:.3px;
}

.login-form-panel{
  min-height:100vh;
  padding:42px 56px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}

.login-card{
  width:min(100%, 470px);
  padding:40px 42px 34px;
  background:rgba(255,255,255,.94);
  border:1px solid rgba(205,224,220,.95);
  border-radius:22px;
  box-shadow:var(--shadow);
}

.login-card-head{
  margin-bottom:30px;
}

.login-eyebrow{
  color:#2b8278;
}

.login-card-head h2{
  margin:9px 0 7px;
  font-size:30px;
  line-height:1.15;
  letter-spacing:-.6px;
}

.login-card-head p{
  margin:0;
  color:var(--muted);
  font-size:13px;
}

.login-alert{
  margin:-4px 0 20px;
  padding:12px 14px;
  border:1px solid #efc7c7;
  border-radius:11px;
  background:var(--danger-bg);
  color:var(--danger);
  display:flex;
  align-items:center;
  gap:9px;
  font-size:11px;
}

.login-alert > span{
  width:22px;
  height:22px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#f5d6d6;
  font-weight:900;
}

.field-group{
  display:block;
  margin-bottom:18px;
}

.field-group > span{
  display:block;
  margin-bottom:7px;
  color:#315b56;
  font-size:11px;
  font-weight:700;
}

.field-wrap{
  height:50px;
  border:1px solid #cfdfdc;
  border-radius:12px;
  background:#fff;
  display:flex;
  align-items:center;
  transition:.18s ease;
  overflow:hidden;
}

.field-wrap:focus-within{
  border-color:#60a99f;
  box-shadow:0 0 0 3px rgba(69,151,141,.09);
}

.field-icon{
  width:42px;
  flex:0 0 42px;
  display:grid;
  place-items:center;
  color:#6fa79f;
  font-size:16px;
}

.field-wrap input{
  min-width:0;
  width:100%;
  height:100%;
  padding:0 12px 0 0;
  border:0;
  outline:0;
  background:transparent;
  color:#173f3b;
  font-size:13px;
  font-family:inherit;
}

.field-wrap input::placeholder{
  color:#a2b2af;
}

.password-toggle{
  height:100%;
  padding:0 15px;
  border:0;
  background:transparent;
  color:#317f76;
  font-size:10px;
  font-weight:700;
  cursor:pointer;
}

.login-submit{
  width:100%;
  height:50px;
  margin-top:5px;
  border:0;
  border-radius:12px;
  background:linear-gradient(135deg, #1f746a, #225f59);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-family:inherit;
  font-size:12px;
  font-weight:800;
  letter-spacing:.15px;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(31,116,106,.16);
  transition:.18s ease;
}

.login-submit:hover{
  transform:translateY(-1px);
  box-shadow:0 13px 28px rgba(31,116,106,.21);
}

.login-submit span{
  font-size:16px;
}

.login-security{
  margin-top:24px;
  padding-top:21px;
  border-top:1px solid #e3ecea;
  display:flex;
  gap:11px;
  align-items:flex-start;
}

.security-mark{
  width:28px;
  height:28px;
  flex:0 0 28px;
  display:grid;
  place-items:center;
  border-radius:8px;
  background:var(--brand-soft);
  color:#268075;
  font-size:12px;
  font-weight:900;
}

.login-security > div:last-child{
  display:grid;
  gap:3px;
}

.login-security strong{
  font-size:10px;
  color:#315b56;
}

.login-security small{
  color:#869794;
  font-size:9px;
  line-height:1.45;
}

.login-footer{
  width:min(100%, 470px);
  margin-top:18px;
  display:flex;
  justify-content:center;
  gap:8px;
  color:#8ea09d;
  font-size:9px;
}

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

  .login-brand-panel{
    display:none;
  }

  .login-form-panel{
    padding:28px 20px;
  }
}

@media (max-width: 520px){
  .login-card{
    padding:30px 24px 26px;
    border-radius:18px;
  }

  .login-card-head h2{
    font-size:26px;
  }
}
