:root {
  color-scheme: light;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.login-page {
  min-height: 100vh;
  margin: 0;
  background: #f7f8fa;
  color: #172033;
}
.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(460px, 0.95fr);
}
.login-intro {
  position: relative;
  overflow: hidden;
  padding: clamp(38px, 7vw, 108px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #f9fbff;
  background:
    radial-gradient(
      circle at 82% 14%,
      rgba(145, 197, 216, 0.46),
      transparent 31%
    ),
    radial-gradient(
      circle at 15% 92%,
      rgba(79, 112, 151, 0.46),
      transparent 35%
    ),
    linear-gradient(145deg, #11223c 0%, #1a385b 51%, #254c68 100%);
}
.login-intro::before,
.login-intro::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(225, 240, 248, 0.18);
  border-radius: 50%;
  pointer-events: none;
}
.login-intro::before {
  width: 680px;
  height: 680px;
  right: -210px;
  top: -200px;
}
.login-intro::after {
  width: 460px;
  height: 460px;
  left: -190px;
  bottom: -300px;
}
.brand {
  position: absolute;
  top: 36px;
  left: clamp(38px, 7vw, 108px);
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
  font-size: 18px;
  letter-spacing: 0.08em;
  font-weight: 720;
}
.brand em {
  font-style: normal;
  font-weight: 450;
  opacity: 0.7;
  letter-spacing: 0.02em;
}
.brand-mark {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 10px 10px 10px 2px;
  font-family: var(--font-body);
  font-size: 20px;
}
.eyebrow {
  margin: 0 0 14px;
  color: #8197ac;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.login-intro .eyebrow {
  color: #b9d9e8;
}
.login-intro h1 {
  position: relative;
  max-width: 620px;
  margin: 0;
  font-size: clamp(42px, 5.1vw, 76px);
  letter-spacing: -0.065em;
  line-height: 0.99;
}
.intro-copy {
  position: relative;
  max-width: 480px;
  margin: 30px 0 0;
  color: #d7e7f2;
  font-size: 17px;
  line-height: 1.6;
}
.intro-note {
  position: relative;
  display: flex;
  gap: 13px;
  align-items: flex-start;
  max-width: 440px;
  margin-top: 47px;
  padding-top: 21px;
  border-top: 1px solid rgba(220, 239, 248, 0.26);
  color: #bdd5e4;
  font-size: 13px;
  line-height: 1.55;
}
.intro-note span {
  color: #c6edf1;
  font-size: 18px;
}
.intro-note p {
  margin: 0;
}
.login-panel {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 40px;
  background: #fbfcfe;
}
.login-card {
  width: min(100%, 408px);
  padding: 42px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #e2e8ef;
  border-radius: 24px;
  box-shadow:
    0 21px 62px rgba(31, 53, 78, 0.11),
    0 2px 7px rgba(31, 53, 78, 0.04);
}
.card-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 29px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #e5f0f6;
  color: #1b6480;
  font-size: 23px;
  font-weight: 700;
}
.login-card h2 {
  margin: 0 0 12px;
  font-size: 29px;
  letter-spacing: -0.045em;
  line-height: 1.1;
}
.login-card .muted {
  margin: 0 0 29px;
  color: #66758a;
  font-size: 14px;
  line-height: 1.55;
}
.login-card label {
  display: block;
  margin-bottom: 9px;
  color: #334155;
  font-size: 13px;
  font-weight: 680;
}
.login-card input {
  box-sizing: border-box;
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid #cfd9e5;
  border-radius: 12px;
  background: #fff;
  color: #172033;
  font: inherit;
  outline: none;
  transition:
    border 0.15s,
    box-shadow 0.15s;
}
.login-card input:focus {
  border-color: #1a7699;
  box-shadow: 0 0 0 4px rgba(31, 140, 177, 0.13);
}
.login-card #code {
  font-size: 22px;
  letter-spacing: 0.28em;
  text-align: center;
}
.login-submit {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  border-radius: 12px;
  background: var(--color-accent);
  color: var(--color-on-accent);
  border-color: var(--color-accent);
  box-shadow: 0 7px 15px rgba(101, 163, 13, 0.2);
}
.login-submit:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}
.google-login-button {
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #c8d2dc;
  color: #273548;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(31, 53, 78, 0.06);
}
.google-login-button:hover {
  background: #f6f8fa;
  border-color: #9aabba;
}
.google-login-button:focus-visible {
  outline: 3px solid #1a7699;
  outline-offset: 3px;
}
.login-submit[hidden] {
  display: none;
}
.login-submit:disabled {
  opacity: 0.62;
  cursor: wait;
}
.form-error {
  min-height: 20px;
  margin: 8px 0 -8px;
  color: #b42318;
  font-size: 13px;
  line-height: 1.4;
}
.code-sent {
  margin: 0 0 24px;
  color: #526176;
  font-size: 14px;
  line-height: 1.55;
}
.code-sent strong {
  color: #1e2d40;
  font-weight: 700;
}
.trusted-device {
  display: flex !important;
  gap: 10px;
  align-items: flex-start;
  margin: 18px 0 0 !important;
  cursor: pointer;
  color: #344234 !important;
  font-size: 13px !important;
  line-height: 1.35;
}
.trusted-device input {
  flex: 0 0 auto;
  width: 18px !important;
  height: 18px !important;
  margin: 1px 0 0;
  accent-color: var(--color-accent);
}
.trusted-device strong,
.trusted-device small {
  display: block;
}
.trusted-device strong {
  font-weight: 680;
}
.trusted-device small {
  margin-top: 3px;
  color: #6a776c;
  font-size: 12px;
}
.email-login-link {
  display: block;
  margin: 18px auto 0;
  padding: 4px;
  border: 0;
  background: transparent;
  color: #236985;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}
.email-login-link[hidden] { display: none; }
.back-link,
.resend {
  padding: 0;
  border: 0;
  background: transparent;
  color: #236985;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.back-link {
  margin: -2px 0 26px;
}
.resend {
  display: block;
  margin: 19px auto 0;
}
.login-help {
  margin: 31px 0 0;
  padding-top: 20px;
  border-top: 1px solid #edf0f4;
  color: #8290a2;
  font-size: 12px;
  text-align: center;
}
.security-line {
  margin: 22px 0 0;
  color: #758397;
  font-size: 12px;
}
.security-line span {
  color: #1e7190;
  font-size: 16px;
  vertical-align: -1px;
}
@media (max-width: 820px) {
  .login-layout {
    grid-template-columns: 1fr;
  }
  .login-intro {
    min-height: 250px;
    padding: 92px 32px 38px;
  }
  .brand {
    top: 29px;
    left: 32px;
  }
  .login-intro h1 {
    font-size: 40px;
  }
  .intro-copy,
  .intro-note {
    display: none;
  }
  .login-panel {
    min-height: 520px;
    padding: 36px 20px;
  }
  .login-card {
    padding: 31px 25px;
    border-radius: 20px;
  }
}
