.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #061827;
  color: #102538;
  overflow: auto;
}
.auth-gate[hidden] {
  display: none;
}
.auth-backdrop {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      circle at 18% 20%,
      rgba(40, 169, 226, 0.23),
      transparent 34%
    ),
    radial-gradient(
      circle at 72% 82%,
      rgba(68, 164, 108, 0.12),
      transparent 28%
    ),
    linear-gradient(135deg, #04121f, #0a2d4a);
}
.auth-layout {
  position: relative;
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(330px, 0.9fr) minmax(430px, 1.1fr);
}
.auth-brand {
  min-height: 100vh;
  padding: 44px clamp(28px, 5vw, 74px);
  display: flex;
  flex-direction: column;
  color: #fff;
}
.auth-brandmark,
.auth-mobile-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}
.auth-brandmark img,
.auth-mobile-brand img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #ffffff55;
  box-shadow: 0 12px 28px #020b12;
}
.auth-brandmark span,
.auth-mobile-brand span {
  display: block;
  color: #92b4ca;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}
.auth-brandmark strong,
.auth-mobile-brand strong {
  display: block;
  margin-top: 3px;
  font-size: 1.03rem;
  letter-spacing: 0.02em;
}
.auth-promise {
  margin: auto 0;
  max-width: 590px;
}
.auth-kicker {
  display: inline-flex;
  border: 1px solid #58c5ed55;
  background: #28a9e218;
  border-radius: 999px;
  padding: 7px 11px;
  color: #8cddfa;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.auth-promise h1 {
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  margin: 24px 0 22px;
}
.auth-promise p {
  max-width: 610px;
  color: #bed0dc;
  font-size: 1rem;
  line-height: 1.75;
}
.auth-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.auth-trust span {
  border: 1px solid #ffffff1f;
  background: #ffffff0c;
  border-radius: 999px;
  padding: 8px 11px;
  color: #d9e7ef;
  font-size: 0.72rem;
}
.auth-signature {
  color: #7896aa;
  font-size: 0.69rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.auth-panel {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 32px;
  background: linear-gradient(145deg, #f7fafc, #e7eef3);
}
.auth-card {
  width: min(100%, 480px);
  background: #fff;
  border: 1px solid #d8e4eb;
  border-radius: 26px;
  padding: 34px;
  box-shadow: 0 26px 70px rgba(5, 24, 39, 0.17);
}
.auth-heading span {
  font-size: 0.69rem;
  font-weight: 850;
  color: #126bd4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.auth-heading h2 {
  font-size: 1.85rem;
  margin: 7px 0 7px;
  letter-spacing: -0.035em;
}
.auth-heading p {
  font-size: 0.82rem;
  line-height: 1.55;
  color: #697c8d;
  margin-bottom: 22px;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: #eaf0f4;
  border-radius: 13px;
  margin-bottom: 22px;
}
.auth-tabs button {
  border: 0;
  border-radius: 10px;
  padding: 10px;
  background: transparent;
  color: #667c8d;
  font-size: 0.78rem;
  font-weight: 800;
}
.auth-tabs button.active {
  background: #fff;
  color: #071a2c;
  box-shadow: 0 3px 10px #071a2c12;
}
.auth-form {
  display: none;
}
.auth-form.active {
  display: block;
}
.auth-form label {
  display: block;
  margin-bottom: 13px;
  color: #20374a;
  font-size: 0.76rem;
  font-weight: 760;
}
.auth-form label > input,
.auth-password,
.auth-phone {
  margin-top: 6px;
}
.auth-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cad9e3;
  border-radius: 12px;
  padding: 12px 13px;
  background: #f9fbfc;
  color: #102538;
  font-size: 0.92rem;
  outline: 0;
}
.auth-form input:focus {
  border-color: #28a9e2;
  box-shadow: 0 0 0 3px #28a9e21d;
  background: #fff;
}
.auth-password,
.auth-phone {
  display: flex;
  align-items: center;
  border: 1px solid #cad9e3;
  border-radius: 12px;
  background: #f9fbfc;
  overflow: hidden;
}
.auth-password:focus-within,
.auth-phone:focus-within {
  border-color: #28a9e2;
  box-shadow: 0 0 0 3px #28a9e21d;
  background: #fff;
}
.auth-password input,
.auth-phone input {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none !important;
}
.auth-password button {
  width: 46px;
  align-self: stretch;
  border: 0;
  background: transparent;
  color: #7890a1;
}
.auth-phone span {
  padding-left: 13px;
  color: #486477;
  font-weight: 800;
}
.auth-text-button,
.auth-back {
  border: 0;
  background: none;
  color: #126bd4;
  font-size: 0.72rem;
  font-weight: 760;
  padding: 0;
  margin: 0 0 15px;
}
.auth-primary,
.auth-google {
  width: 100%;
  min-height: 49px;
  border-radius: 12px;
  font-weight: 800;
}
.auth-primary {
  border: 0;
  background: linear-gradient(135deg, #126bd4, #1689d5);
  color: #fff;
  box-shadow: 0 10px 20px #126bd429;
}
.auth-primary:hover {
  filter: brightness(1.04);
}
.auth-primary:disabled {
  opacity: 0.58;
  cursor: wait;
}
.auth-google {
  border: 1px solid #c8d8e3;
  background: #fff;
  color: #183247;
}
.google-g {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  border-radius: 50%;
  background: conic-gradient(
    from -45deg,
    #4285f4 0 25%,
    #34a853 0 50%,
    #fbbc05 0 75%,
    #ea4335 0
  );
  color: #fff;
  font-weight: 900;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #8b9ba7;
  font-size: 0.68rem;
  margin: 17px 0;
}
.auth-divider:before,
.auth-divider:after {
  content: "";
  height: 1px;
  flex: 1;
  background: #dde6eb;
}
.auth-consent {
  display: flex !important;
  gap: 9px;
  align-items: flex-start;
  font-weight: 550 !important;
  line-height: 1.45;
}
.auth-consent input {
  width: 18px !important;
  min-height: 18px !important;
  margin: 2px 0 0 !important;
  flex: none;
  padding: 0;
}
.auth-consent a {
  color: #126bd4;
  font-weight: 760;
}
.auth-check {
  width: 100%;
  min-height: 46px;
  margin-top: 12px;
  border: 1px solid #9cc7e6;
  border-radius: 12px;
  background: #edf6fc;
  color: #0e64a3;
  font-weight: 800;
}
.auth-check[hidden] {
  display: none;
}
.auth-phone-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #e8f3fc;
  color: #126bd4;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.auth-form h3 {
  font-size: 1.25rem;
  margin: 0 0 8px;
}
.auth-form > p {
  font-size: 0.8rem;
  color: #697c8d;
  line-height: 1.55;
}
.auth-otp {
  margin-top: 15px;
}
.auth-message {
  display: none;
  margin-top: 14px;
  padding: 11px 12px;
  border-radius: 11px;
  background: #edf5fb;
  color: #174d73;
  font-size: 0.73rem;
  line-height: 1.45;
}
.auth-message.show {
  display: block;
}
.auth-message.error {
  background: #faecee;
  color: #9c3040;
}
.auth-message.success {
  background: #e8f5ed;
  color: #287648;
}
.auth-legal {
  text-align: center;
  color: #8a9ba7;
  font-size: 0.62rem;
  line-height: 1.45;
  margin: 16px 8px 0;
}
.auth-mobile-brand {
  display: none;
}
.auth-preview-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 38px;
  height: 38px;
  border: 1px solid #cad9e3;
  border-radius: 12px;
  background: #fff;
  color: #294457;
  font-size: 1.25rem;
}
.account-status {
  font-size: 0.62rem;
  color: #79d9ff;
}
.auth-ready .auth-preview-close {
  display: none;
}
@media (max-width: 820px) {
  .auth-layout {
    display: block;
  }
  .auth-brand {
    display: none;
  }
  .auth-panel {
    display: block;
    min-height: 100vh;
    padding: 20px 15px 32px;
  }
  .auth-mobile-brand {
    display: flex;
    color: #071a2c;
    margin: 4px 4px 24px;
  }
  .auth-mobile-brand img {
    width: 50px;
    height: 50px;
  }
  .auth-mobile-brand span {
    color: #55758b;
  }
  .auth-card {
    padding: 25px 20px;
    border-radius: 22px;
  }
  .auth-preview-close {
    top: 16px;
    right: 15px;
  }
  .auth-heading h2 {
    font-size: 1.55rem;
  }
}
@media (max-width: 420px) {
  .property {
    display: none;
  }
  .identity strong {
    font-size: 0.82rem;
    letter-spacing: 0.03em;
  }
  .account-status {
    margin-left: auto;
  }
  .auth-panel {
    padding-top: max(18px, env(safe-area-inset-top));
  }
}
