:root{
  --green:#018021;
  --green-soft:#eaf8ee;
  --green-dark:#006b1c;
  --purple:#23154C;
  --ink:#14233a;
  --muted:#6b7890;
  --line:#dfe8f3;
}

*{box-sizing:border-box}

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

body.auth-page{
  margin:0;
  min-height:100vh;
  min-height:100svh;
  background:
    radial-gradient(circle at 15% 15%,rgba(255,255,255,.18),transparent 30%),
    linear-gradient(135deg,var(--purple) 0%,var(--green) 55%,#04a63a 100%);
  font:15px Arial,sans-serif;
  color:var(--ink);
}

.auth-shell{
  min-height:100vh;
  min-height:100svh;
  width:100%;
  display:grid;
  place-items:center;
  padding:clamp(14px,4vw,28px);
}

.auth-box{
  width:min(980px,100%);
  display:grid;
  grid-template-columns:minmax(300px,.95fr) minmax(320px,1.05fr);
  background:#fff;
  border-radius:clamp(18px,4vw,26px);
  overflow:hidden;
  box-shadow:0 25px 70px rgba(3,42,94,.40);
}

.auth-intro{
  padding:clamp(30px,5vw,52px) clamp(22px,4vw,44px);
  background:linear-gradient(155deg,var(--green),var(--purple));
  color:#fff;
  display:flex;
  flex-direction:column;
  justify-content:center;
  text-align:left;
}

.auth-logo{
  display:block;
  width:clamp(128px,22vw,220px);
  height:clamp(128px,22vw,220px);
  object-fit:contain;
  background:#fff;
  border-radius:clamp(18px,3vw,26px);
  padding:8px;
  margin:0 auto clamp(18px,4vw,28px);
}

.auth-intro h1{
  font-size:clamp(28px,4.5vw,38px);
  line-height:1.05;
  margin:0 0 14px;
  letter-spacing:-.5px;
}

.auth-intro p{
  font-size:clamp(15px,2.3vw,17px);
  line-height:1.6;
  color:#eaffef;
  margin:0;
}

.auth-points{
  display:grid;
  gap:12px;
  margin-top:20px;
}

.auth-points span{
  padding:12px 14px;
  border:1px solid rgba(255,255,255,.27);
  border-radius:10px;
  background:rgba(255,255,255,.07);
}

.auth-form{
  padding:clamp(30px,5vw,52px) clamp(20px,5vw,48px);
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.auth-form h2{
  font-size:clamp(25px,4vw,30px);
  margin:0 0 8px;
  color:var(--ink);
}

.auth-form .sub{
  color:var(--muted);
  margin:0 0 clamp(20px,4vw,25px);
  line-height:1.5;
}

.auth-form label{
  display:block;
  font-weight:800;
  margin:15px 0 7px;
  color:#152719;
}

.auth-form input{
  display:block;
  width:100%;
  min-width:0;
  min-height:50px;
  padding:14px 15px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  color:var(--ink);
  font:inherit;
  font-size:16px;
  outline:0;
}

.auth-form input:focus{
  border-color:var(--green);
  box-shadow:0 0 0 4px rgba(1,128,33,.12);
}

.auth-form .terms-check{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-top:15px;
  font-weight:700;
  line-height:1.45;
  color:#334a3b;
}

.auth-form .terms-check input{
  width:18px;
  min-width:18px;
  height:18px;
  min-height:18px;
  margin-top:2px;
  padding:0;
  accent-color:var(--green);
}

.auth-btn{
  width:100%;
  min-height:52px;
  border:0;
  border-radius:12px;
  padding:14px;
  background:var(--green);
  color:#fff;
  font-weight:800;
  font-size:16px;
  margin-top:22px;
  cursor:pointer;
  box-shadow:0 10px 22px rgba(1,128,33,.20);
}

.auth-btn:active{transform:translateY(1px)}

.auth-link{
  color:var(--green);
  font-weight:800;
  text-decoration:none;
}

.auth-link:hover{text-decoration:underline}

.auth-footer{
  margin-top:22px;
  text-align:center;
  color:var(--muted);
  line-height:1.6;
}

.auth-alert{
  padding:12px 14px;
  border-radius:12px;
  background:#e7f5ea;
  color:#176634;
  margin-bottom:16px;
  line-height:1.45;
  overflow-wrap:anywhere;
}

.auth-alert.danger{
  background:#ffeded;
  color:#a32121;
}

.muted{color:var(--muted)}

@media(max-width:820px){
  .auth-shell{
    align-items:center;
    padding:18px 14px;
  }
  .auth-box{
    max-width:520px;
    grid-template-columns:1fr;
  }
  .auth-intro{
    padding:26px 22px 22px;
    text-align:center;
  }
  .auth-logo{
    width:118px;
    height:118px;
    margin-bottom:14px;
  }
  .auth-points{
    display:none;
  }
  .auth-form{
    padding:28px 22px 30px;
  }
}

@media(max-width:420px){
  .auth-shell{
    padding:10px;
  }
  .auth-box{
    border-radius:18px;
  }
  .auth-intro{
    padding:22px 18px 18px;
  }
  .auth-logo{
    width:96px;
    height:96px;
    border-radius:16px;
  }
  .auth-intro h1{
    font-size:25px;
  }
  .auth-intro p{
    font-size:14px;
  }
  .auth-form{
    padding:24px 18px 26px;
  }
  .auth-form input,
  .auth-btn{
    min-height:50px;
  }
}

@media(max-height:640px) and (max-width:820px){
  .auth-shell{
    place-items:start center;
  }
  .auth-intro{
    padding-top:18px;
    padding-bottom:16px;
  }
  .auth-logo{
    width:78px;
    height:78px;
    margin-bottom:10px;
  }
  .auth-form{
    padding-top:20px;
  }
}
