.login-layout {
  width: min(1080px, 100%);
  min-height: min(610px, calc(100vh - 228px));
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  overflow: hidden;
  margin: clamp(12px, 5vh, 56px) auto;
  border: 1px solid #d8e2ed;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(20, 42, 66, .11);
}
.login-intro {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(30px, 4vw, 52px);
  background: linear-gradient(145deg, #102b43, #164263);
  color: #fff;
}
.login-intro::before,
.login-intro::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(144, 204, 249, .13);
  border-radius: 50%;
  pointer-events: none;
}
.login-intro::before { right: -250px; top: -200px; }
.login-intro::after { left: -270px; bottom: -230px; }
.login-intro-content,
.login-intro-footer { position: relative; z-index: 1; }
.login-kicker { margin: 0; color: #0a67bd; font-size: 11px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.login-intro .login-kicker { color: #9bcaf0; }
.login-intro h2 { margin: 24px 0 12px; font-size: clamp(29px, 3vw, 42px); font-weight: 680; letter-spacing: -.035em; line-height: 1.15; }
.login-intro h2 span { color: #8ccaff; }
.login-intro-copy { max-width: 320px; margin: 0; color: #c8d9e7; font-size: 15px; }
.login-workflow { display: grid; gap: 20px; margin-top: 42px; }
.login-workflow > div { display: flex; align-items: flex-start; gap: 14px; }
.login-workflow > div > span { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(173, 215, 247, .2); border-radius: 10px; background: rgba(255,255,255,.08); color: #9bd0f9; }
.login-workflow p { margin: 0; }
.login-workflow strong,
.login-workflow small { display: block; }
.login-workflow strong { font-size: 14px; font-weight: 700; }
.login-workflow small { max-width: 260px; margin-top: 2px; color: #bbd0e1; font-size: 12px; line-height: 1.45; }
.login-intro-footer { margin: 28px 0 0; color: #a4bfd3; font-size: 11px; }
.login-card { min-width: 0; display: grid; align-items: center; padding: clamp(28px, 5vw, 68px); }
.login-card-inner { width: min(100%, 420px); margin: auto; }
.login-card h1 { margin: 8px 0 5px; color: #172435; font-size: clamp(31px, 3vw, 39px); font-weight: 700; letter-spacing: -.035em; }
.login-subheading { margin: 0 0 29px; color: #65778b; font-size: 14px; }
.login-message { margin: 0 0 20px; padding: 12px 14px; border: 1px solid #bfd9ed; border-radius: 9px; background: #f2f8fe; color: #28577f; font-size: 13px; }
.login-message-error { border-color: #f1c4c9; background: #fff4f4; color: #a12c3a; }
.login-message-success { border-color: #b9dfcb; background: #edf9f2; color: #126947; }
.login-message p:last-child { margin-bottom: 0; }
.login-message:empty { display: none; }
.login-form { display: grid; gap: 19px; }
.login-field label { display: block; margin-bottom: 8px; color: #34495d; font-size: 13px; font-weight: 750; }
.login-input-wrap { position: relative; }
.login-input-wrap > i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #8093a5; font-size: 15px; pointer-events: none; }
.login-input-wrap input { width: 100%; height: 52px; padding: 0 16px 0 44px; border: 1px solid #cbd8e4; border-radius: 10px; background: #fff; color: #172435; font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s; }
.login-input-wrap input::placeholder { color: #91a1b1; }
.login-input-wrap input:focus { border-color: #0878df; box-shadow: 0 0 0 4px rgba(8,120,223,.12); }
.login-input-wrap input#password { padding-right: 88px; }
.login-password-toggle { position: absolute; right: 8px; top: 50%; min-width: 70px; min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 5px; transform: translateY(-50%); border: 0; border-radius: 7px; background: transparent; color: #42617d; font-size: 12px; font-weight: 750; }
.login-password-toggle:hover { background: #edf5fc; }
.login-password-toggle:focus-visible,
.login-submit:focus-visible,
.login-options a:focus-visible { outline: 3px solid rgba(8,120,223,.3); outline-offset: 2px; }
.login-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -2px 0 2px; }
.login-remember { display: flex; align-items: center; gap: 9px; margin: 0; color: #41566b; font-size: 13px; cursor: pointer; }
.login-remember input { width: 17px; height: 17px; margin: 0; accent-color: #0878df; cursor: pointer; }
.login-options a { color: #075baa; font-size: 13px; font-weight: 700; text-decoration: none; }
.login-options a:hover { text-decoration: underline; }
.login-submit { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 10px; background: #0878df; color: #fff; font-size: 15px; font-weight: 750; transition: background .15s, transform .15s; }
.login-submit:hover { background: #075baa; }
.login-submit:active { transform: translateY(1px); }
.login-help { margin: 24px 0 0; color: #7d8da0; font-size: 12px; text-align: center; }
.recovery-layout { width: min(560px, 100%); margin: clamp(12px, 8vh, 88px) auto; padding: clamp(28px, 4vw, 48px); border: 1px solid #d8e2ed; border-radius: 18px; background: #fff; box-shadow: 0 18px 50px rgba(20, 42, 66, .09); }
.recovery-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 30px; color: #42617d; font-size: 13px; font-weight: 750; text-decoration: none; }
.recovery-back:hover { color: #075baa; text-decoration: none; }
.recovery-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 13px; background: #e8f3fe; color: #0878df; font-size: 19px; }
.recovery-layout h1 { margin: 8px 0; color: #172435; font-size: clamp(28px, 3vw, 36px); letter-spacing: -.03em; }
.recovery-copy { margin: 0 0 27px; color: #65778b; font-size: 14px; }
.recovery-help { margin: 24px 0 0; color: #7d8da0; font-size: 12px; text-align: center; }
@media (max-width: 800px) {
  .login-layout { width: min(620px, 100%); min-height: 0; grid-template-columns: 1fr; }
  .login-intro { padding: 22px 30px; }
  .login-intro h2 { margin: 7px 0 3px; font-size: 22px; }
  .login-intro h2 br { display: none; }
  .login-intro h2 span::before { content: " "; white-space: pre; }
  .login-intro-copy { font-size: 13px; }
  .login-workflow,
  .login-intro-footer { display: none; }
  .login-card { padding: 34px 30px 40px; }
}
@media (max-width: 480px) {
  .login-layout { margin: 0 auto; border-radius: 14px; }
  .login-intro { padding: 20px; }
  .login-intro h2 { font-size: 19px; }
  .login-intro-copy { font-size: 12px; }
  .login-card { padding: 28px 20px 34px; }
  .login-options { align-items: flex-start; }
  .recovery-layout { margin: 0 auto; padding: 28px 20px; border-radius: 14px; }
}
