
:root {
  --container: 1440px;
  --gutter: 32px;
  --fast: .18s;
  --normal: .28s;
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
body.auth-page .icon { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* =========================================================
   薄荷云计算 · 登录与注册
   Page-specific auth UI, built on the same framework tokens.
   ========================================================= */

:root {
  --auth-blue: #125df5;
  --auth-blue-dark: #0b4ccc;
  --auth-navy: #071a33;
  --auth-mint: #16b889;
  --auth-line: #dfe8f2;
  --auth-line-soft: #edf2f7;
  --auth-text: #526a82;
  --auth-muted: #8294a7;
  --auth-soft: #f5f9fd;
}

body.auth-page {
  min-height: 100vh;
  color: var(--auth-text);
  background: #f2f7fc;
}

.auth-page .icon {
  width: 17px;
  height: 17px;
}

/* ---------- Utility and header ---------- */
.auth-utility {
  min-height: 36px;
  color: #91a6bb;
  background: var(--auth-navy);
  font-size: 10.5px;
}

.auth-utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: var(--container);
  min-height: 36px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.auth-utility-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c0d1e2;
  letter-spacing: 0.02em;
}

.auth-utility-brand::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--auth-mint);
}

.auth-utility-links {
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.auth-service-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8ea6bb;
}

.auth-service-status i {
  width: 4px;
  height: 4px;
  background: var(--auth-mint);
  box-shadow: 0 0 0 3px rgba(22, 184, 137, 0.1);
}

.auth-utility-links a {
  transition: color var(--fast);
}

.auth-utility-links a:hover {
  color: #fff;
}

.auth-header {
  height: 74px;
  background: #fff;
  border-bottom: 1px solid var(--auth-line);
}

.auth-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  width: 100%;
  max-width: var(--container);
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.auth-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.auth-brand img {
  width: 132px;
  height: auto;
}

.auth-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #8a9aab;
  font-size: 11.5px;
}

.auth-header-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #586d84;
  transition: color var(--fast);
}

.auth-header-back:hover {
  color: var(--auth-blue);
}

.auth-header-sep {
  width: 1px;
  height: 15px;
  background: #e2eaf3;
}

.auth-header-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--auth-blue);
  font-weight: 500;
  transition: color var(--fast);
}

.auth-header-link:hover {
  color: var(--auth-blue-dark);
}

.auth-header-link .icon {
  width: 12px;
  height: 12px;
}

/* ---------- Main split ---------- */
.auth-main {
  position: relative;
  overflow: hidden;
  padding-block: clamp(34px, 5vw, 62px);
  background:
    radial-gradient(circle at 86% 8%, rgba(18, 93, 245, 0.055), transparent 27%),
    linear-gradient(180deg, #f8fbff 0%, #eef5fc 100%);
}

.auth-main::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(18, 93, 245, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 93, 245, 0.055) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.52) 58%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.52) 58%, transparent 100%);
  pointer-events: none;
}

.auth-main::after {
  position: absolute;
  top: -220px;
  right: -100px;
  width: 580px;
  height: 580px;
  content: "";
  border: 1px solid rgba(18, 93, 245, 0.11);
  transform: rotate(24deg);
  pointer-events: none;
}

.auth-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  width: min(1120px, calc(100% - 48px));
  min-height: 590px;
  margin-inline: auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dbe6f1;
  box-shadow: 0 28px 74px rgba(7, 26, 51, 0.09);
}

/* ---------- Brand panel ---------- */
.auth-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(32px, 3.6vw, 48px);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse at 96% 3%, rgba(18, 93, 245, 0.48), transparent 42%),
    radial-gradient(ellipse at 2% 100%, rgba(22, 184, 137, 0.16), transparent 40%),
    #071a33;
}

.auth-visual::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(155deg, #000 0%, rgba(0, 0, 0, 0.4) 58%, transparent 92%);
  -webkit-mask-image: linear-gradient(155deg, #000 0%, rgba(0, 0, 0, 0.4) 58%, transparent 92%);
  pointer-events: none;
}

.auth-visual::after {
  position: absolute;
  right: -170px;
  bottom: -180px;
  width: 450px;
  height: 450px;
  content: "";
  border: 1px solid rgba(143, 181, 255, 0.16);
  transform: rotate(28deg);
  pointer-events: none;
}

.auth-visual-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.auth-visual-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.auth-visual-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #88b2ef;
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.auth-visual-kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--auth-mint);
}

.auth-visual-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 7px;
  color: #9fc7bd;
  background: rgba(22, 184, 137, 0.09);
  border: 1px solid rgba(22, 184, 137, 0.2);
  font-size: 9px;
  white-space: nowrap;
}

.auth-visual-badge i {
  width: 4px;
  height: 4px;
  background: var(--auth-mint);
}

.auth-visual-main {
  margin-top: clamp(36px, 8vh, 72px);
}

.auth-visual-title {
  max-width: 440px;
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 3.15vw, 46px);
  font-weight: 600;
  line-height: 1.23;
  letter-spacing: -0.045em;
}

.auth-visual-title span {
  color: #80b2ff;
}

.auth-visual-desc {
  max-width: 400px;
  margin-top: 16px;
  color: #9db2c6;
  font-size: 11.5px;
  line-height: 1.9;
}

.auth-points {
  display: grid;
  gap: 1px;
  max-width: 430px;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.auth-point {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.auth-point-icon {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  color: #91bbff;
  background: rgba(18, 93, 245, 0.17);
  border: 1px solid rgba(112, 165, 255, 0.24);
}

.auth-point-icon .icon {
  width: 14px;
  height: 14px;
}

.auth-point-copy strong {
  display: block;
  color: #e7f1ff;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.5;
}

.auth-point-copy span {
  display: block;
  margin-top: 1px;
  color: #8ca4bb;
  font-size: 9.5px;
  line-height: 1.65;
}

.auth-visual-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 28px;
  color: #8198ae;
  font-size: 9.5px;
}

.auth-visual-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.auth-visual-status i {
  width: 4px;
  height: 4px;
  background: var(--auth-mint);
  box-shadow: 0 0 0 3px rgba(22, 184, 137, 0.1);
}

.auth-visual-foot a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #a7caff;
  transition: color var(--fast);
}

.auth-visual-foot a:hover {
  color: #fff;
}

.auth-visual-foot .icon {
  width: 12px;
  height: 12px;
}

.auth-visual-watermark {
  position: absolute;
  right: 8px;
  bottom: 62px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.035);
  font-family: var(--font-display);
  font-size: clamp(64px, 7vw, 106px);
  font-weight: 600;
  line-height: 0.82;
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
}

/* ---------- Form panel ---------- */
.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: clamp(32px, 3.6vw, 48px);
  background: #fff;
}

.auth-panel-inner {
  width: 100%;
  max-width: 386px;
}

.auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #7b8fa5;
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.11em;
}

.auth-kicker-index {
  display: inline-grid;
  place-items: center;
  min-width: 25px;
  height: 20px;
  padding: 0 5px;
  color: var(--auth-blue);
  background: #f5f9ff;
  border: 1px solid #d8e6f5;
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.auth-panel h1 {
  margin: 14px 0 0;
  color: #102a48;
  font-size: clamp(29px, 2.5vw, 35px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.auth-panel-subtitle {
  margin-top: 9px;
  color: #7d8fa2;
  font-size: 11px;
  line-height: 1.8;
}

.auth-form {
  margin-top: 25px;
}

.auth-field {
  margin-top: 14px;
}

.auth-label {
  display: block;
  margin-bottom: 6px;
  color: #4f657d;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.5;
}

.auth-control {
  position: relative;
  display: flex;
  align-items: center;
  height: 47px;
  background: #fff;
  border: 1px solid #d8e4ef;
  transition: border-color var(--fast), box-shadow var(--fast), background var(--fast);
}

.auth-control:focus-within {
  border-color: #8bb4f4;
  box-shadow: inset 0 0 0 1px rgba(18, 93, 245, 0.25);
}

.auth-control > .icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin-left: 13px;
  color: #94a6b9;
  transition: color var(--fast);
}

.auth-control:focus-within > .icon {
  color: var(--auth-blue);
}

.auth-control input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1d3854;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.4;
}

.auth-control input::placeholder {
  color: #a5b3c1;
}

.auth-control input:-webkit-autofill {
  -webkit-text-fill-color: #1d3854;
  box-shadow: inset 0 0 0 60px #fff;
}

.auth-reveal {
  display: grid;
  place-items: center;
  width: 42px;
  height: 100%;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8c9eb1;
  cursor: pointer;
  transition: color var(--fast);
}

.auth-reveal:hover {
  color: var(--auth-blue);
}

.auth-reveal .icon {
  width: 16px;
  height: 16px;
}

.auth-eye-closed {
  display: none;
}

.auth-reveal.is-visible .auth-eye-open {
  display: none;
}

.auth-reveal.is-visible .auth-eye-closed {
  display: block;
}

.auth-field.is-invalid .auth-control {
  background: #fffafa;
  border-color: #cb5960;
  box-shadow: inset 0 0 0 1px rgba(203, 89, 96, 0.12);
}

.auth-field.is-invalid .auth-control > .icon {
  color: #c6565d;
}

.auth-error {
  display: none;
  margin: 5px 0 0;
  color: #bf4d55;
  font-size: 9.5px;
  line-height: 1.6;
}

.auth-field.is-invalid .auth-error,
.auth-error.is-visible {
  display: block;
}

.auth-hint {
  margin-top: 4px;
  color: #9baaba;
  font-size: 9px;
  line-height: 1.6;
}

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 15px;
}

.auth-check {
  display: inline-flex;
  align-items: flex-start;
  gap: 7px;
  color: #6d8093;
  font-size: 10px;
  line-height: 1.6;
  cursor: pointer;
}

.auth-check input {
  position: relative;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  margin: 1px 0 0;
  padding: 0;
  appearance: none;
  border: 1px solid #cbd9e6;
  background: #fff;
  cursor: pointer;
  transition: background var(--fast), border-color var(--fast);
}

.auth-check input:checked {
  border-color: var(--auth-blue);
  background: var(--auth-blue);
}

.auth-check input:checked::after {
  position: absolute;
  top: 1px;
  left: 4px;
  width: 4px;
  height: 8px;
  content: "";
  border-right: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(45deg);
}

.auth-check input:focus-visible {
  outline: 2px solid rgba(18, 93, 245, 0.4);
  outline-offset: 2px;
}

.auth-link-button,
.auth-inline-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--auth-blue);
  font: inherit;
  font-size: 10px;
  line-height: 1.6;
  cursor: pointer;
  transition: color var(--fast);
}

.auth-link-button:hover,
.auth-inline-button:hover {
  color: var(--auth-blue-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  height: 46px;
  margin-top: 20px;
  padding: 0 15px;
  border: 1px solid var(--auth-blue);
  background: var(--auth-blue);
  color: #fff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background var(--fast), border-color var(--fast);
}

.auth-submit .icon {
  width: 15px;
  height: 15px;
  transition: transform var(--fast);
}

.auth-submit:hover {
  background: var(--auth-blue-dark);
  border-color: var(--auth-blue-dark);
}

.auth-submit:hover .icon {
  transform: translateX(2px);
}

.auth-form-status {
  margin-top: 13px;
  padding: 9px 11px;
  color: #49647d;
  background: #f6f9fd;
  border-left: 3px solid #90a8bf;
  font-size: 10px;
  line-height: 1.75;
}

.auth-form-status.is-success {
  color: #126b58;
  background: #f0faf6;
  border-left-color: var(--auth-mint);
}

.auth-form-status.is-error {
  color: #a0444a;
  background: #fff7f7;
  border-left-color: #c75a61;
}

.auth-demo-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 15px 0 0;
  padding-top: 13px;
  border-top: 1px solid var(--auth-line-soft);
  color: #93a2b2;
  font-size: 9px;
  line-height: 1.7;
}

.auth-demo-note .icon {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  margin-top: 1px;
  color: #8095aa;
}

.auth-form-switch {
  margin-top: 18px;
  color: #7e90a3;
  font-size: 10.5px;
  text-align: center;
}

.auth-form-switch a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 4px;
  color: var(--auth-blue);
  font-weight: 500;
  transition: color var(--fast);
}

.auth-form-switch a:hover {
  color: var(--auth-blue-dark);
}

.auth-form-switch .icon {
  width: 11px;
  height: 11px;
}

.auth-support-link {
  margin-top: 13px;
  color: #9baaba;
  font-size: 9.5px;
  text-align: center;
}

.auth-support-link a {
  color: #6b8198;
  border-bottom: 1px solid #ccd8e4;
  transition: color var(--fast), border-color var(--fast);
}

.auth-support-link a:hover {
  color: var(--auth-blue);
  border-color: var(--auth-blue);
}

/* Registration-specific */
.auth-agree {
  margin-top: 17px;
}

.auth-agree-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
  color: #75899e;
  font-size: 10px;
  line-height: 1.7;
}

.auth-agree-row .auth-check {
  gap: 6px;
}

.auth-agree-row .auth-inline-button {
  font-size: 10px;
}

.auth-terms-error {
  display: none;
  margin-top: 5px;
  color: #bf4d55;
  font-size: 9.5px;
}

.auth-terms-error.is-visible {
  display: block;
}

/* ---------- Footer ---------- */
.auth-footer {
  color: #72879d;
  background: var(--auth-navy);
  font-size: 9.5px;
}

.auth-footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 24px var(--gutter) 18px;
}

.auth-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.auth-footer-brand img {
  width: 120px;
  height: auto;
}

.auth-footer-brand span {
  color: #72879d;
  font-size: 9.5px;
}

.auth-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-top: 4px;
  color: #94a9bd;
  font-size: 10px;
}

.auth-footer-links a {
  transition: color var(--fast);
}

.auth-footer-links a:hover {
  color: #fff;
}

.auth-footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 22px;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 12px var(--gutter) 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #60758b;
  font-size: 9px;
  line-height: 1.7;
}

.auth-footer-meta span:last-child {
  margin-left: auto;
}

/* ---------- Feedback toast ---------- */
.auth-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 3000;
  max-width: calc(100% - 32px);
  padding: 11px 15px;
  color: #fff;
  background: #102a49;
  border-left: 3px solid var(--auth-mint);
  box-shadow: 0 16px 40px rgba(7, 26, 51, 0.2);
  font-size: 10.5px;
  line-height: 1.7;
  transform: translate(-50%, 12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--normal), transform var(--normal), visibility var(--normal);
}

.auth-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .auth-shell {
    width: min(1020px, calc(100% - 48px));
  }

  .auth-visual {
    padding: 34px;
  }

  .auth-panel {
    padding: 34px;
  }

  .auth-visual-title {
    font-size: clamp(33px, 3.4vw, 42px);
  }
}

@media (max-width: 900px) {
  .auth-shell {
    display: block;
    width: min(560px, calc(100% - 40px));
    min-height: 0;
  }

  .auth-visual {
    display: none;
  }

  .auth-panel {
    padding: 34px 30px;
  }

  .auth-panel-inner {
    max-width: 430px;
    margin-inline: auto;
  }

  .auth-main {
    padding-block: 28px 38px;
  }
}

@media (max-width: 680px) {
  .auth-utility {
    min-height: 33px;
  }

  .auth-utility-inner {
    min-height: 33px;
    padding-inline: 16px;
  }

  .auth-utility-brand {
    display: none;
  }

  .auth-utility-links {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    font-size: 9.5px;
  }

  .auth-header {
    height: 64px;
  }

  .auth-header-inner {
    padding-inline: 16px;
  }

  .auth-brand img {
    width: 112px;
  }

  .auth-header-actions {
    gap: 8px;
    font-size: 10.5px;
  }

  .auth-header-back,
  .auth-header-sep {
    display: none;
  }

  .auth-main {
    padding-block: 16px 26px;
  }

  .auth-shell {
    width: calc(100% - 28px);
  }

  .auth-panel {
    padding: 25px 20px 27px;
  }

  .auth-panel h1 {
    font-size: 28px;
  }

  .auth-panel-subtitle {
    font-size: 10.5px;
  }

  .auth-form {
    margin-top: 21px;
  }

  .auth-control {
    height: 46px;
  }

  .auth-control input {
    font-size: 16px;
  }

  .auth-submit {
    height: 45px;
    font-size: 12px;
  }

  .auth-options {
    margin-top: 13px;
  }

  .auth-check {
    font-size: 9.5px;
  }

  .auth-agree-row {
    font-size: 9.5px;
  }

  .auth-footer-inner {
    display: block;
    padding: 20px 16px 14px;
  }

  .auth-footer-brand {
    justify-content: space-between;
  }

  .auth-footer-brand img {
    width: 112px;
  }

  .auth-footer-links {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .auth-footer-meta {
    display: grid;
    gap: 5px;
    padding: 11px 16px 14px;
  }

  .auth-footer-meta span:last-child {
    margin-left: 0;
  }

  .auth-toast {
    bottom: 16px;
  }
}

@media (max-width: 380px) {
  .auth-panel {
    padding-inline: 17px;
  }

  .auth-header-actions > span:not(.auth-header-link) {
    display: none;
  }

  .auth-options {
    align-items: flex-start;
  }

  .auth-form-switch {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-page *,
  .auth-page *::before,
  .auth-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Keep the licence line as readable as the main site footer. */
.auth-footer-meta {
  gap: 8px 24px;
  font-size: 11px;
  line-height: 1.8;
}

.auth-footer-links {
  font-size: 10.5px;
}

@media (max-width: 680px) {
  .auth-footer-meta {
    font-size: 10.5px;
  }
}

/* Keep the footer at the bottom on short auth screens. */
body.auth-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.auth-main {
  flex: 1 0 auto;
}

.auth-footer {
  flex: 0 0 auto;
}


/* Native ZJMF forms embedded in the Mint auth panel */
.auth-panel .affs-nav {
  display: flex;
  gap: 18px;
  margin: 22px 0 0;
  border-bottom: 0;
}
.auth-panel .affs-nav .nav-item { flex: 0 0 auto; }
.auth-panel .affs-nav .nav-link {
  min-height: 28px;
  padding: 0 0 7px;
  color: #8799ab;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  font-size: 11px;
}
.auth-panel .affs-nav .nav-link.active {
  color: var(--auth-blue);
  border-bottom-color: var(--auth-blue);
}
.auth-panel .tab-content { margin-top: 20px; }
.auth-panel .form-group { margin: 0 0 16px; }
.auth-panel .form-group > label,
.auth-panel .form-group .d-flex label {
  display: block;
  margin: 0 0 7px;
  color: #526a82;
  font-size: 10.5px;
  font-weight: 500;
}
.auth-panel .form-control {
  height: 50px !important;
  padding: 0 14px 0 42px;
  color: #142c48;
  background-color: #fff;
  border: 1px solid #dfe8f2;
  border-radius: 0;
  box-shadow: none;
  font-size: 12px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.auth-panel .form-control:focus {
  border-color: var(--auth-blue);
  box-shadow: 0 0 0 3px rgba(18, 93, 245, .08);
}
.auth-panel #emailInp,
.auth-panel #phoneInp {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2394a7b9' stroke-width='1.6'%3E%3Ccircle cx='12' cy='8' r='3.6'/%3E%3Cpath d='M5 20c.5-4.1 3.2-6.5 7-6.5s6.5 2.4 7 6.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px center;
}
.auth-panel #emailPwdInp,
.auth-panel #phonePwdInp,
.auth-panel input[type="password"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2394a7b9' stroke-width='1.6'%3E%3Crect x='4' y='10' width='16' height='11'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3M12 14v3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px center;
}
.auth-panel #phoneCodeInp {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2394a7b9' stroke-width='1.6'%3E%3Cpath d='M6 4h12v16H6zM9 8h6M9 12h6M9 16h3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px center;
}
.auth-panel .input-group .form-control { border-right: 0; }
.auth-panel .input-group-prepend .form-control { padding-left: 12px; background-image: none; width: 95px; }
.auth-panel .input-group-append .btn { height: 50px; border-radius: 0; font-size: 10.5px; }
.auth-panel .btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 50px;
  margin-top: 4px;
  color: #fff;
  background: var(--auth-blue);
  border: 1px solid var(--auth-blue);
  border-radius: 0;
  box-shadow: none;
  font-size: 12px;
  font-weight: 500;
}
.auth-panel .btn-primary:hover { background: var(--auth-blue-dark); border-color: var(--auth-blue-dark); }
.auth-panel .btn-primary::after { content: "\2192"; font-size: 16px; line-height: 1; }
.auth-panel .text-primary { color: var(--auth-blue) !important; }
.auth-panel .invalid-feedback { color: #d9534f; font-size: 10px; }
.auth-panel .mt-5.text-center { margin-top: 20px !important; }
.auth-panel .mt-5.text-center p { margin: 0; color: #8294a7; font-size: 10.5px; }
.auth-panel .mt-5.text-center a { color: var(--auth-blue); }
.auth-panel .alert { border-radius: 0; font-size: 11px; }
.auth-panel .auth-form-switch { margin-top: 22px; }
.auth-panel .auth-support-link { margin-top: 13px; }
.auth-panel .form-group .d-flex { margin-top: 2px; margin-bottom: 6px; }
.auth-panel .form-group .d-flex a { font-size: 10.5px; }
.auth-panel .custom-control label { font-size: 10.5px; }

/* hide sprite box and system credit on the auth canvas */
body.auth-page .svg-sprite {
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}
body.auth-page a[href="https://www.idcsmart.com"],
body.auth-page a[href*="idcsmart.com"] {
  display: none !important;
}

.auth-panel .auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 8px;
  font-size: 10.5px;
}
.auth-panel .auth-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #8294a7;
  font-weight: 400;
  cursor: pointer;
}
.auth-panel .auth-check input { width: 13px; height: 13px; margin: 0; accent-color: var(--auth-blue); }
.auth-panel .auth-options a { color: var(--auth-blue); font-size: 10.5px; }

/* target-style single-column form: method switch is a link, not a tab strip */
.auth-panel .affs-nav { display: none !important; }
.auth-panel .tab-content { margin-top: 22px; }
.auth-panel .auth-alt-method { margin: 16px 0 0; text-align: center; font-size: 10.5px; }
.auth-panel .auth-alt-method a { color: #8294a7; }
.auth-panel .auth-alt-method a:hover { color: var(--auth-blue); }
