:root{
  --bg:#f2f4f7;
  --card:#ffffff;
  --text:#2f2f2f;
  --muted:#b7b7b7;
  --border:#ececf0;
  --shadow:0 12px 26px rgba(18, 18, 18, 0.08);
  --green:#1d7f6f;
  --danger:#d35a5a;
  --focus:rgba(114, 82, 255, 0.25);
  --btn1:#7b55ff;
  --btn2:#8a58ff;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:"Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
}

.page{
  min-height:100vh;
  padding:40px 18px 48px;
  display:flex;
  flex-direction:column;
  align-items:center;
}

.brand{
  width:100%;
  display:flex;
  justify-content:center;
  margin-top:10px;
  margin-bottom:26px;
}

.brand__logo{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--green);
}
.brand__text{
  font-weight:700;
  letter-spacing:0.8px;
  font-size:26px;
}
.brand__icon{
  color:var(--green);
  flex:none;
}

.card{
  width:min(560px, 100%);
  background:var(--card);
  border-radius:10px;
  box-shadow:var(--shadow);
  padding:44px 22px 38px;
}

.card__head{
  text-align:center;
  margin-bottom:26px;
}
.card__title{
  margin:0;
  font-size:28px;
  font-weight:600;
  color:#2c2c2c;
}
.card__subtitle{
  margin:8px 0 0;
  font-size:14px;
  color:#bdbdbd;
}

.form{
  width:min(410px, 100%);
  margin:0 auto;
}

.field{ margin-top:18px; }
.field:first-of-type{ margin-top:0; }

.field__labelRow{
  display:flex;
  align-items:baseline;
  gap:10px;
}

.field__label{
  display:block;
  font-size:15px;
  font-weight:600;
  color:#2d2d2d;
  margin:0 0 10px;
}

.field__link{
  margin-left:auto;
  font-size:15px;
  font-weight:600;
  color:var(--danger);
  text-decoration:none;
}
.field__link:hover{ text-decoration:underline; }

.field__input{
  width:100%;
  height:50px;
  border:1px solid var(--border);
  border-radius:8px;
  padding:0 16px;
  font-size:14px;
  outline:none;
  background:#fff;
  box-shadow:0 0 0 0 rgba(0,0,0,0);
  transition:border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.field__input::placeholder{
  color:#c8c8c8;
}
.field__input:focus{
  border-color:#8a74ff;
  box-shadow:0 0 0 4px var(--focus);
}
.field__input[aria-invalid="true"]{
  border-color:rgba(211, 90, 90, 0.7);
  box-shadow:0 0 0 4px rgba(211, 90, 90, 0.16);
}

.field__error{
  min-height:18px;
  margin-top:8px;
  font-size:12px;
  color:var(--danger);
}

.check{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:14px;
  user-select:none;
}
.check__box{
  width:18px;
  height:18px;
  accent-color:#7b55ff;
}
.check__text{
  color:#c3c3c3;
  font-size:14px;
}

.btn{
  width:100%;
  height:52px;
  margin-top:18px;
  border:0;
  border-radius:10px;
  cursor:pointer;
  font-weight:600;
  font-size:16px;
  color:#fff;
  background:linear-gradient(180deg, var(--btn2), var(--btn1));
  box-shadow:0 8px 18px rgba(123, 85, 255, 0.22);
  transition:transform 120ms ease, box-shadow 160ms ease, filter 160ms ease;
}
.btn:hover{
  filter:brightness(1.02);
  box-shadow:0 10px 22px rgba(123, 85, 255, 0.26);
}
.btn:active{
  transform:translateY(1px);
}
.btn:focus-visible{
  outline:none;
  box-shadow:0 0 0 4px var(--focus), 0 10px 22px rgba(123, 85, 255, 0.26);
}

.footer{
  margin:18px 0 0;
  text-align:center;
  font-size:14px;
  color:#bdbdbd;
}
.footer__link{
  color:#7b55ff;
  text-decoration:none;
}
.footer__link:hover{ text-decoration:underline; }

@media (min-width: 420px){
  .card{ padding:52px 38px 44px; border-radius:12px; }
  .brand{ margin-bottom:34px; }
}

@media (min-width: 768px){
  .page{ padding-top:54px; }
  .card{ width:min(640px, 100%); }
}

