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

body{
  background:
    radial-gradient(700px 420px at 82% 10%, rgba(255,63,121,.18), transparent 65%),
    radial-gradient(900px 520px at 88% 78%, rgba(103,92,255,.14), transparent 62%),
    linear-gradient(180deg, #fff8f8 0%, #f7f1ff 56%, #f2efff 100%);
}

.main.container{
  width:100%;
  min-width:0;
  max-width:none;
  padding:0;
  overflow-x:clip;
  display:flex;
}

.site-footer{
  display:none;
}

.auth{
  position:relative;
  width:100%;
  min-height:calc(100dvh - 69px);
  overflow:hidden;
  padding:clamp(34px, 7vh, 72px) 0 28px;
  display:flex;
  align-items:flex-start;
}

.auth::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(320px 180px at 12% 16%, rgba(255,255,255,.78), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.16), transparent 44%);
}

.auth-shell{
  position:relative;
  z-index:2;
  width:min(1160px, calc(100% - 40px));
  min-width:0;
  margin:0 auto;
}

.auth-layout{
  display:grid;
  grid-template-columns:minmax(0, .96fr) minmax(360px, .70fr);
  gap:16px;
  align-items:start;
}

.auth-panel,
.auth-side > *{
  min-width:0;
  border:1px solid rgba(32,25,47,.08);
  border-radius:8px;
  background:rgba(255,255,255,.88);
  box-shadow:0 18px 46px rgba(31,24,47,.08);
  backdrop-filter:blur(18px);
}

.auth-panel{
  padding:20px;
}

.auth-side{
  position:sticky;
  top:88px;
  display:grid;
  gap:10px;
  min-width:0;
}

.auth-form-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}

.auth-eyebrow{
  min-height:28px;
  display:inline-flex;
  align-items:center;
  padding:0 10px;
  border-radius:999px;
  color:#ff3f79;
  background:rgba(255,63,121,.08);
  font-size:11px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.auth-title{
  margin:8px 0 7px;
  color:#211a30;
  font-size:clamp(30px, 3vw, 42px);
  line-height:1;
  letter-spacing:0;
  font-weight:950;
  text-wrap:balance;
}

.auth-lead{
  max-width:650px;
  margin:0;
  color:#5b5165;
  font-size:13px;
  line-height:1.5;
  font-weight:700;
  overflow-wrap:anywhere;
}

.auth-secure{
  display:inline-flex;
  align-items:center;
  gap:8px;
  flex-shrink:0;
  min-height:32px;
  padding:0 10px;
  border:1px solid rgba(35,209,139,.16);
  border-radius:999px;
  color:#4e435d;
  background:#fff;
  box-shadow:0 10px 24px rgba(31,24,47,.05);
  font-size:11px;
  font-weight:950;
  white-space:nowrap;
}

.auth-dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background:#23d18b;
  box-shadow:0 0 0 6px rgba(35,209,139,.13);
}

.auth-form{
  display:grid;
  gap:12px;
}

.field{
  display:grid;
  gap:7px;
}

.label{
  color:#2b2339;
  font-size:11px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.input{
  width:100%;
  min-height:46px;
  padding:0 13px;
  border:1px solid rgba(32,25,47,.10);
  border-radius:8px;
  color:#211a30;
  background:#fff;
  box-shadow:0 10px 28px rgba(31,24,47,.05);
  font-size:15px;
  font-weight:850;
  outline:none;
}

.input:focus{
  border-color:rgba(255,63,121,.48);
  box-shadow:0 0 0 4px rgba(255,63,121,.11), 0 10px 28px rgba(31,24,47,.05);
}

.small{
  font-size:12px;
}

.muted{
  color:#6b6075;
}

.auth-submit{
  width:100%;
  min-height:48px;
  border-radius:8px;
  font-size:13px;
}

.auth-submit:disabled{
  cursor:wait;
  opacity:.78;
  transform:none;
}

.auth-status{
  min-height:18px;
  margin:0;
  font-weight:850;
  line-height:1.4;
}

.auth-summary{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:8px;
  padding:10px;
}

.auth-summary div{
  min-width:0;
  display:grid;
  align-content:center;
  gap:6px;
  padding:12px;
  border:1px solid rgba(32,25,47,.07);
  border-radius:8px;
  background:#fff;
}

.auth-summary span{
  color:#6b6075;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.auth-summary strong{
  color:#20192f;
  font-size:24px;
  line-height:1;
  font-weight:950;
}

.auth-pass-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px;
  color:#fff;
  background:
    radial-gradient(220px 130px at 90% 0%, rgba(255,255,255,.26), transparent 62%),
    linear-gradient(135deg, #ff3f79 0%, #bd50d4 52%, #675cff 100%);
}

.auth-pass-card span{
  display:block;
  color:rgba(255,255,255,.78);
  font-size:10px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.auth-pass-card p{
  max-width:190px;
  margin:6px 0 0;
  color:rgba(255,255,255,.88);
  font-size:12px;
  line-height:1.25;
  font-weight:850;
}

.auth-pass-row{
  display:flex;
  align-items:center;
  gap:8px;
  flex-shrink:0;
}

.auth-pass-row strong{
  color:#fff;
  font-size:34px;
  line-height:1;
  letter-spacing:0;
}

.auth-pass-row em{
  min-width:48px;
  min-height:48px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.38);
  border-radius:50%;
  background:rgba(255,255,255,.16);
  font-size:15px;
  font-style:normal;
  font-weight:950;
}

.auth-help-strip{
  display:grid;
  gap:12px;
  padding:14px;
}

.auth-help-strip strong{
  display:block;
  color:#211a30;
  font-size:18px;
  line-height:1;
  font-weight:950;
}

.auth-help-strip span{
  display:block;
  margin-top:6px;
  line-height:1.4;
  font-weight:700;
}

.auth-link{
  width:100%;
  min-height:42px;
  border-radius:8px;
  color:#211a30;
}

.auth-facts{
  display:grid;
  gap:7px;
  padding:14px;
}

.auth-facts span{
  min-height:34px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:0 10px;
  border-radius:8px;
  color:#2f263d;
  background:#f8f3fb;
}

.auth-facts b{
  font-size:12px;
  font-weight:950;
}

.auth-facts small{
  color:#6b6075;
  font-size:11px;
  font-weight:850;
}

.alert{
  border:1px solid rgba(32,25,47,.10);
  border-radius:8px;
  padding:12px 14px;
  background:rgba(37,99,235,.06);
  color:#2f263d;
  font-size:13px;
  font-weight:850;
  line-height:1.45;
}

.alert.success{
  border-color:rgba(35,209,139,.18);
  background:rgba(16,185,129,.10);
}

:root{
  --err-bg: rgba(255,77,138,.10);
  --err-border: rgba(255,77,138,.40);
  --err-glow: rgba(255,77,138,.14);
  --err-text: #a10f52;
}

.field.is-invalid .input{
  border-color:var(--err-border);
  background:var(--err-bg);
  box-shadow:0 0 0 5px var(--err-glow);
}

.field.is-invalid .input:focus{
  border-color:rgba(255,77,138,.55);
  box-shadow:0 0 0 6px rgba(255,77,138,.16);
}

.field-error{
  display:block;
  margin-top:6px;
  color:var(--err-text);
  font-size:12.5px;
  font-weight:850;
  line-height:1.25;
}

@media (max-width: 980px){
  .auth{
    align-items:flex-start;
    padding:22px 0 40px;
  }

  .auth-layout{
    grid-template-columns:1fr;
  }

  .auth-side{
    position:relative;
    top:auto;
    grid-template-columns:1fr 1fr;
    align-items:start;
  }

  .auth-facts{
    grid-column:1 / -1;
  }
}

@media (max-width: 640px){
  .auth{
    min-height:calc(100dvh - 65px);
    padding:10px 0 28px;
  }

  .auth-shell{
    width:calc(100% - 24px);
  }

  .auth-panel{
    padding:14px;
  }

  .auth-form-head{
    display:grid;
    gap:8px;
    margin-bottom:12px;
  }

  .auth-eyebrow{
    min-height:24px;
    font-size:10px;
  }

  .auth-title{
    margin:6px 0 4px;
    font-size:26px;
  }

  .auth-lead{
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
    font-size:12px;
    line-height:1.35;
  }

  .auth-secure{
    width:max-content;
  }

  .auth-form{
    gap:10px;
  }

  .field{
    gap:6px;
  }

  .input{
    min-height:44px;
    font-size:16px;
  }

  .auth-submit{
    min-height:46px;
  }

  .auth-side{
    grid-template-columns:1fr;
    gap:8px;
  }

  .auth-summary{
    padding:8px;
    gap:6px;
  }

  .auth-summary div{
    padding:8px;
    gap:4px;
  }

  .auth-summary span{
    font-size:9px;
  }

  .auth-summary strong{
    font-size:19px;
  }

  .auth-pass-card{
    padding:12px;
  }

  .auth-pass-row strong{
    font-size:30px;
  }

  .auth-pass-row em{
    min-width:44px;
    min-height:44px;
    font-size:14px;
  }

  .auth-help-strip,
  .auth-facts{
    padding:12px;
  }

  .auth-facts{
    display:none;
  }
}

@media (max-width: 420px){
  .header-row{
    padding-left:10px;
    padding-right:10px;
  }

  .brand span{
    font-size:15px;
  }

  .header-actions{
    gap:6px;
  }

  .lang-switch{
    gap:2px;
  }

  .lang-btn{
    min-width:34px;
    height:32px;
    padding:0 8px;
  }

  .nav-toggle{
    min-width:36px;
    padding-left:8px;
    padding-right:8px;
  }
}
