.mct-auth-page {
  margin: 0 !important;
  min-height: 100vh;
  color: #f4f7ff;
  background-color: #03070f !important;
  background-image:
    linear-gradient(rgba(70, 130, 255, .20) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 130, 255, .20) 1px, transparent 1px) !important;
  background-size: 45px 45px !important;
  background-position: center !important;
}

.mct-auth-page::before { display: none !important; }

.auth-main {
  display: grid;
  min-height: calc(100vh - 145px);
  place-items: center;
  padding: 62px 24px;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  align-items: center;
  gap: clamp(38px, 8vw, 110px);
  width: min(1050px, 100%);
}

.auth-intro { max-width: 520px; }
.auth-eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 20px;
  color: #a9bddf;
  font: 700 10px/1.4 "DM Mono", monospace;
  letter-spacing: .2em;
}
.auth-eyebrow > span {
  width: 20px;
  height: 1px;
  background: #ff7955;
}
.auth-intro h1 {
  margin: 0;
  color: #fff;
  font: 800 clamp(42px, 6vw, 72px)/.99 Manrope, "DM Sans", sans-serif;
  letter-spacing: -.065em;
}
.auth-intro h1 em {
  color: #93b2ff;
  font-family: Georgia, serif;
  font-weight: 700;
  letter-spacing: -.055em;
}
.auth-intro > p:not(.auth-eyebrow) {
  max-width: 455px;
  margin: 23px 0 0;
  color: #a8bbdc;
  font: 400 15px/1.85 Manrope, "DM Sans", sans-serif;
}
.auth-promise {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 27px;
  color: #d7e4ff;
  font-size: 12px;
}
.auth-promise span { color: #ff7955; }

.auth-card {
  padding: 30px;
  border: 1px solid rgba(161, 190, 245, .2);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(15, 39, 83, .95), rgba(7, 22, 51, .96));
  box-shadow: 0 28px 90px rgba(0, 5, 22, .38), inset 0 1px rgba(255, 255, 255, .04);
}
.auth-loading { padding: 34px 0; color: #a8bbdc; text-align: center; font-size: 13px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 4px; border: 1px solid rgba(161, 190, 245, .14); border-radius: 11px; background: rgba(1, 10, 27, .42); }
.auth-tab { min-height: 40px; border: 0; border-radius: 8px; color: #9eb2d8; background: transparent; font: 700 12px Manrope, sans-serif; cursor: pointer; }
.auth-tab.is-active { color: #fff; background: rgba(96, 139, 222, .24); box-shadow: inset 0 0 0 1px rgba(143, 178, 244, .18); }
.google-button,
.auth-submit,
.sign-out-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 47px;
  border-radius: 9px;
  font: 800 12px Manrope, "DM Sans", sans-serif;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease, border-color .18s ease;
}
.google-button { margin-top: 18px; border: 1px solid rgba(172, 197, 242, .25); color: #eff4ff; background: rgba(255, 255, 255, .045); }
.google-button:hover,.auth-submit:hover,.sign-out-button:hover { transform: translateY(-1px); filter: brightness(1.08); }
.google-g { color: #8db3ff; font: 800 18px Arial, sans-serif; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 19px 0; color: #8198c0; font: 500 9px "DM Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }
.auth-divider::before,.auth-divider::after { height: 1px; flex: 1; background: rgba(161, 190, 245, .15); content: ""; }
.auth-form { display: grid; gap: 14px; }
.auth-form[hidden],.account-panel[hidden],#authForms[hidden] { display: none !important; }
.auth-form label { display: grid; gap: 7px; color: #b7c8e5; font: 700 11px Manrope, sans-serif; }
.auth-form input { box-sizing: border-box; width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid rgba(149, 177, 226, .2); border-radius: 8px; outline: 0; color: #f4f7ff; background: rgba(2, 12, 31, .65); font: 500 12px Manrope, sans-serif; }
.auth-form input:focus { border-color: #83a9ff; box-shadow: 0 0 0 3px rgba(92, 139, 231, .14); }
.auth-form input::placeholder { color: #738bb5; }
.forgot-button { justify-self: end; padding: 2px 0; border: 0; color: #9cbaff; background: none; font: 700 10px Manrope, sans-serif; cursor: pointer; }
.forgot-button:hover { color: #fff; }
.forgot-button:disabled { opacity: .55; cursor: wait; }
.auth-submit { margin-top: 4px; border: 0; color: white; background: linear-gradient(105deg, #386ed4, #5f8ff0); box-shadow: 0 10px 22px rgba(44, 93, 189, .2); text-decoration: none; }
.auth-message { min-height: 18px; margin: 13px 0 0; color: #ffbd9f; font: 600 11px/1.6 Manrope, sans-serif; }
.auth-message.is-success { color: #9ce3bf; }
.auth-message.is-error { color: #ffb0a1; }
.auth-footnote { margin: 12px 0 0; color: #7389af; font: 400 9px/1.6 Manrope, sans-serif; text-align: center; }
.account-panel { text-align: center; }
.account-avatar { display: grid; width: 58px; height: 58px; margin: 0 auto 19px; place-items: center; border: 1px solid rgba(155, 188, 255, .35); border-radius: 18px; color: #fff; background: linear-gradient(145deg, #315da8, #172d5e); font: 800 23px Manrope, sans-serif; }
.account-eyebrow { justify-content: center; margin-bottom: 9px; }
.account-panel h2 { margin: 0; font: 800 23px Manrope, sans-serif; letter-spacing: -.04em; }
.account-email { margin: 8px 0 17px; color: #a8bbdc; font-size: 12px; overflow-wrap: anywhere; }
.sign-out-button { margin-top: 11px; border: 1px solid rgba(160, 187, 235, .25); color: #d8e4fb; background: rgba(255, 255, 255, .035); }
.auth-footer { display: flex; justify-content: space-between; gap: 15px; width: min(1050px, calc(100% - 48px)); margin: 0 auto; padding: 0 0 27px; color: #7f95ba; font: 500 10px Manrope, sans-serif; }
.auth-footer a { color: #a8bbdc; text-decoration: none; }
.auth-footer a:hover { color: white; }
.mct-auth-page button:focus-visible,.mct-auth-page a:focus-visible { outline: 2px solid #9cbaff; outline-offset: 3px; }

@media (max-width: 780px) {
  .auth-main { min-height: auto; padding: 44px 18px 48px; }
  .auth-layout { grid-template-columns: 1fr; gap: 29px; width: min(470px, 100%); }
  .auth-intro { text-align: center; }
  .auth-eyebrow { justify-content: center; }
  .auth-intro h1 { font-size: clamp(39px, 11vw, 57px); }
  .auth-intro > p:not(.auth-eyebrow) { margin: 15px auto 0; font-size: 13px; }
  .auth-promise { margin-top: 17px; }
  .auth-card { padding: 22px; }
}

@media (max-width: 430px) {
  .auth-main { padding: 34px 14px 40px; }
  .auth-card { padding: 18px; border-radius: 16px; }
  .auth-footer { width: calc(100% - 28px); flex-direction: column; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  .google-button,.auth-submit,.sign-out-button { transition: none; }
}
