.authPageBody{
  min-height:100vh;
  background:
    radial-gradient(900px 420px at 18% 8%, rgba(124,58,237,.10), transparent 60%),
    radial-gradient(900px 520px at 86% 16%, rgba(6,182,212,.10), transparent 60%),
    linear-gradient(180deg, #f7f7fb 0%, #eef4f8 100%);
  color:var(--text);
}

.authPage{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}

.authCard{
  width:min(1120px, 100%);
  background:rgba(255,255,255,.92);
  border:1px solid var(--border);
  border-radius:28px;
  box-shadow:0 24px 70px rgba(15,23,42,.08);
  overflow:hidden;
  backdrop-filter:blur(10px);
}

.authLayout{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);
  min-height:680px;
}

.authMain{
  padding:40px;
}

.authSide{
  padding:40px;
  border-left:1px solid var(--border);
  background:
    radial-gradient(560px 280px at 100% 100%, rgba(6,182,212,.12), transparent 72%),
    linear-gradient(180deg, rgba(255,255,255,.60), rgba(247,250,252,.85));
}

.authBrand{
  display:inline-flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
  color:inherit;
  margin-bottom:28px;
}

.authBrandLogo{
  width:48px;
  height:48px;
  min-width:48px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, rgba(124,58,237,.12), rgba(6,182,212,.12));
  border:1px solid var(--border);
  overflow:hidden;
}

.authBrandLogoImg{
  display:block;
  width:26px !important;
  height:26px !important;
  max-width:26px !important;
  max-height:26px !important;
  object-fit:contain;
  flex:0 0 26px;
}

.authBrandText{
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:0;
}

.authBrandText strong{
  font-size:20px;
  line-height:1.1;
}

.authBrandText span{
  color:var(--muted);
  font-size:13px;
  line-height:1.35;
}

.authBadge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(124,58,237,.08);
  color:#6d28d9;
  border:1px solid rgba(124,58,237,.12);
  font-size:12px;
  font-weight:700;
  margin-bottom:16px;
}

.authTitle{
  margin:0 0 14px;
  font-size:52px;
  line-height:1.02;
  letter-spacing:-0.03em;
  color:#0f172a;
}

.authLead{
  margin:0 0 24px;
  max-width:58ch;
  color:var(--muted);
  line-height:1.6;
  font-size:15px;
}

.authAlert{
  margin:0 0 14px;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid transparent;
  font-size:14px;
  line-height:1.5;
}

.authAlertError{
  background:#fef2f2;
  border-color:#fecaca;
  color:#991b1b;
}

.authAlertInfo{
  background:#eff6ff;
  border-color:#bfdbfe;
  color:#1d4ed8;
}

.authAlertSuccess{
  background:#ecfdf5;
  border-color:#a7f3d0;
  color:#047857;
}

.authForm{
  display:grid;
  gap:14px;
}

.authField{
  display:grid;
  gap:8px;
}

.authField label{
  font-size:13px;
  font-weight:600;
  color:#475569;
}

.authInputWrap{
  position:relative;
}

.authInput{
  width:100%;
  min-height:52px;
  padding:14px 16px;
  border:1px solid #d7dee7;
  border-radius:16px;
  background:#fff;
  color:#0f172a;
  font-size:15px;
  box-shadow:none;
}

.authInput:focus{
  outline:none;
  border-color:#a78bfa;
  box-shadow:0 0 0 4px rgba(124,58,237,.10);
}

.authInputWithButton{
  padding-right:56px;
}

.authIconButton{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  width:38px;
  height:38px;
  border-radius:12px;
  border:1px solid #e5e7eb;
  background:#fff;
  color:#64748b;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.authIconButton svg{
  width:18px;
  height:18px;
}

.authActions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:6px;
}

.authBtn{
  min-height:48px;
  padding:0 18px;
  border-radius:14px;
  border:1px solid transparent;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  font-weight:700;
  font-size:14px;
  cursor:pointer;
}

.authBtnPrimary{
  color:#fff;
  background:linear-gradient(135deg, #7c3aed, #06b6d4);
  box-shadow:0 14px 32px rgba(124,58,237,.18);
}

.authBtnSecondary{
  color:var(--text);
  background:#f8fafc;
  border-color:#dbe3ee;
}

.authBtnGhost{
  color:var(--text);
  background:#fff;
  border-color:#dbe3ee;
}

.authBtnFull{
  width:100%;
}

.authHelperText{
  margin-top:18px;
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
}

.authRecovery{
  margin-top:22px;
  padding-top:22px;
  border-top:1px solid #e8edf3;
}

.authRecoveryTitle{
  font-size:16px;
  font-weight:800;
  margin-bottom:8px;
}

.authRecoveryText{
  margin:0 0 14px;
  color:var(--muted);
  font-size:13px;
  line-height:1.55;
}

.authSideTitle{
  font-size:14px;
  font-weight:800;
  margin:0 0 14px;
  color:#0f172a;
}

.authList{
  margin:0;
  padding-left:18px;
  display:grid;
  gap:10px;
  color:#475569;
  line-height:1.6;
  font-size:14px;
}

.authPills{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:24px;
}

.authPill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:999px;
  background:#fff;
  border:1px solid #dbe3ee;
  color:#475569;
  font-size:12px;
  font-weight:700;
}

@media (max-width: 920px){
  .authLayout{
    grid-template-columns:1fr;
  }
  .authSide{
    border-left:none;
    border-top:1px solid var(--border);
  }
}

@media (max-width: 640px){
  .authPage{
    padding:14px;
  }
  .authMain,
  .authSide{
    padding:24px 18px;
  }
  .authTitle{
    font-size:38px;
  }
  .authActions{
    flex-direction:column;
  }
  .authBtn{
    width:100%;
  }
}
