html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background-color: #0b1426;
  background-image:
    radial-gradient(1100px 680px at -8% -12%, rgba(48, 94, 175, 0.34) 0%, rgba(48, 94, 175, 0) 66%),
    radial-gradient(980px 620px at 112% -8%, rgba(35, 78, 150, 0.3) 0%, rgba(35, 78, 150, 0) 64%),
    radial-gradient(900px 520px at 52% 118%, rgba(25, 52, 100, 0.42) 0%, rgba(25, 52, 100, 0) 68%),
    linear-gradient(180deg, #0e1a32 0%, #0b1426 52%, #08101f 100%);
  position: relative;
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(140% 95% at 50% 50%, rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, 0.32) 100%),
    repeating-linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.02) 0px,
      rgba(255, 255, 255, 0.02) 1px,
      rgba(255, 255, 255, 0) 1px,
      rgba(255, 255, 255, 0) 26px
    );
  mix-blend-mode: normal;
}

.corner-logo {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.corner-logo-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(180deg, #2f85ff, #255ec2);
  box-shadow: 0 6px 20px rgba(19, 88, 178, 0.35);
}

.corner-logo-text {
  color: #dbe8ff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.page {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 20px;
}

.risk-banner {
  width: min(100%, 1120px);
  position: fixed;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: none;
  background: linear-gradient(180deg, rgba(9, 58, 117, 0.95), rgba(8, 46, 98, 0.95));
  border-radius: 4px;
  padding: 12px 16px;
  color: #b7d7ff;
  font-size: 15px;
  line-height: 1.35;
}

.risk-icon {
  margin-top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #0a4f98;
  background: #3ec0ff;
  flex: 0 0 auto;
}

.risk-banner p {
  margin: 0;
}

.risk-link {
  color: #52c4ff;
  text-decoration: none;
  font-weight: 600;
}

.risk-link:hover {
  text-decoration: underline;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(320px, 520px) minmax(320px, 520px);
  gap: 18px;
  align-items: stretch;
}

.auth-layout.signup-mode {
  align-items: start;
}

.login-card {
  width: min(100%, 520px);
  background: linear-gradient(180deg, rgba(19, 31, 55, 0.94), rgba(16, 27, 49, 0.94));
  border: 1px solid rgba(145, 180, 238, 0.2);
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  padding: 18px 18px 24px;
  color: #eff4ff;
  z-index: 1;
  transform: translateX(-8px);
}

.top-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 16px;
}

.tab {
  border: 0;
  color: #b8c6e1;
  background: transparent;
  border-radius: 8px;
  padding: 12px 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.tab.active {
  color: #ffffff;
  background: rgba(43, 117, 206, 0.45);
}

.login-form {
  display: grid;
  gap: 12px;
}

.auth-panel.hidden {
  display: none;
}

.password-step.hidden {
  display: none;
}

.login-types {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.type-link {
  color: #b2bfd8;
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
}

.type-link.active {
  color: #ffffff;
  padding-bottom: 5px;
  border-bottom: 3px solid #28a6ff;
}

.section-title {
  margin: 2px 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: #d9e7ff;
}

.account-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 8px;
}

.account-type {
  border: 1px solid #3c4d70;
  border-radius: 8px;
  padding: 12px 12px;
  min-height: 68px;
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 10px;
  background: rgba(17, 31, 58, 0.7);
  cursor: pointer;
}

.account-type.active {
  border-color: #1fa4ff;
  background: rgba(18, 49, 89, 0.78);
}

.account-type input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.account-type-icon {
  font-size: 18px;
  line-height: 1;
}

.account-type-text {
  display: grid;
  gap: 2px;
}

.account-type-text strong {
  font-size: 15px;
  color: #eff5ff;
  line-height: 1.1;
}

.account-type-text small {
  color: #b5c6e5;
  font-size: 12px;
  line-height: 1.25;
}

.field-label {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 700;
  color: #d9e7ff;
}

.consent-row {
  margin-top: 2px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #e6efff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
}

.consent-row input[type="checkbox"] {
  margin-top: 2px;
  width: 20px;
  height: 20px;
  accent-color: #279eff;
}

.divider {
  margin: 10px 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #93a6c8;
  font-size: 12px;
  font-weight: 700;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1 1 auto;
  border-top: 1px solid rgba(136, 157, 190, 0.28);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

input {
  width: 100%;
  max-width: 100%;
  border: 1px solid #32415f;
  border-radius: 4px;
  background: rgba(13, 25, 47, 0.8);
  color: #f6f9ff;
  padding: 14px 14px;
  font: inherit;
  font-size: 15px;
  outline: none;
}

input::placeholder {
  color: #8696b0;
}

input:focus {
  border-color: #2aa7ff;
  box-shadow: 0 0 0 2px rgba(42, 167, 255, 0.2);
}

.link {
  color: #1ea2ff;
  text-decoration: none;
  font-weight: 600;
}

.link:hover {
  text-decoration: underline;
}

button {
  border: 0;
  border-radius: 4px;
  padding: 13px 14px;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(180deg, #2f85ff, #256ad1);
}

.login-form > button[type="submit"] {
  margin-top: 6px;
}

button:hover {
  filter: brightness(1.05);
}

.social {
  margin-top: 4px;
  background: #f1f4f8;
  color: #101726;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.social .icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.social.apple .icon {
  width: 22px;
  height: 22px;
}

.footnote {
  margin: 24px 0 0;
  color: #a9b7d2;
  font-size: 12px;
  line-height: 1.35;
  max-width: 470px;
}

.promo-card {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(145, 180, 238, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  height: auto;
  min-height: 100%;
}

.auth-layout.signup-mode .promo-card {
  min-height: 0;
}

.promo-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.auth-layout.signup-mode .promo-card img {
  height: auto;
  object-fit: contain;
}

@media (max-width: 700px) {
  .page {
    padding: 14px;
  }

  .corner-logo {
    top: 14px;
    left: 14px;
  }

  .corner-logo-text {
    font-size: 16px;
  }

  .risk-banner {
    top: 8px;
    font-size: 11px;
    padding: 8px 10px;
  }

  .auth-layout {
    grid-template-columns: 1fr;
  }

  .promo-card {
    display: none;
  }

  .login-card {
    padding: 14px;
    transform: none;
  }

  .tab,
  input,
  button,
  .section-title,
  .field-label,
  .footnote {
    font-size: 18px;
  }

  .account-types {
    grid-template-columns: 1fr;
  }
}
