/* Live AUTH A (split archive). Tokens from ma-tokens.css; cards from ma-components.css.
   Variant-A layout copied from ma-proof-auth.css because that file stays proof-only. */

.ma-auth .sf-dashboard-nav,
body.ma-auth .sf-dashboard-nav {
  display: none;
}

.ma-auth--a,
.ma-auth--a * {
  box-sizing: border-box;
}

body.ma-auth.ma-auth--a {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  margin: 0;
  padding: 0;
  min-height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  background: var(--ma-bg);
  color: var(--ma-text);
  font-family: var(--ma-font-sans);
}

.ma-auth--a .ma-auth-layout {
  display: grid;
  grid-template-columns: 1fr minmax(300px, min(560px, 46vw));
  column-gap: 0;
  width: 100%;
  flex: 1;
  min-height: 0;
  max-height: 100dvh;
  margin: 0;
}

.ma-auth--a a {
  color: var(--ma-text);
}

.ma-auth--a .ma-auth-pane {
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-self: center;
  width: min(400px, calc(100% - var(--ma-space-8)));
  padding: var(--ma-space-7);
  min-width: 0;
  min-height: 0;
  max-height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.ma-auth--a .ma-auth-form,
.ma-auth--a .ma-auth-copy {
  width: min(400px, 100%);
  display: flex;
  flex-direction: column;
  gap: var(--ma-space-4);
}

.ma-auth--a .ma-auth-brand {
  display: flex;
  flex-direction: column;
  gap: var(--ma-space-3);
  margin-bottom: var(--ma-space-2);
}

.ma-auth--a .ma-auth-wordmark {
  margin: 0;
  font-family: var(--ma-font-serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  color: var(--ma-text);
  text-decoration: none;
}

.ma-auth--a .ma-auth-wordmark:hover,
.ma-auth--a .ma-auth-wordmark:focus-visible {
  background: transparent;
}

.ma-auth--a .ma-auth-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ma-muted);
}

.ma-auth--a .ma-auth-lede,
.ma-auth--a .ma-auth-help {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ma-muted);
  max-width: 65ch;
}

.ma-auth--a .ma-auth-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ma-space-2);
  width: 100%;
}

.ma-auth--a .ma-auth-google svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.ma-auth--a .ma-auth-or {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--ma-space-3);
  margin: 0;
  font-size: 12px;
  color: var(--ma-muted);
  text-transform: lowercase;
}

.ma-auth--a .ma-auth-or::before,
.ma-auth--a .ma-auth-or::after {
  content: "";
  height: 1px;
  background: var(--ma-line);
}

.ma-auth--a .ma-auth-password,
.ma-auth--a .password-field.ma-auth-password {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--ma-well);
  border-radius: var(--ma-radius-btn);
  min-height: var(--ma-touch);
  padding-right: var(--ma-space-1);
}

.ma-auth--a .ma-auth-password input {
  flex: 1;
  min-width: 0;
  width: auto;
  background: transparent;
}

.ma-auth--a .ma-auth-password input:focus {
  outline: none;
}

.ma-auth--a .ma-auth-password:focus-within {
  outline: 2px solid var(--ma-text);
  outline-offset: 2px;
}

.ma-auth--a .password-toggle-hide {
  display: none;
}

.ma-auth--a .password-toggle[aria-pressed="true"] .password-toggle-show {
  display: none;
}

.ma-auth--a .password-toggle[aria-pressed="true"] .password-toggle-hide {
  display: block;
}

.ma-auth--a .ma-auth-error {
  margin: 0;
  padding: var(--ma-space-3) var(--ma-space-4);
  background: var(--ma-well);
  color: var(--ma-text);
  font-size: 13px;
  line-height: 1.4;
  max-width: 65ch;
}

.ma-auth--a .ma-auth-form .ma-btn {
  width: 100%;
}

.ma-auth--a .ma-auth-form .ma-field input[aria-invalid="true"] {
  box-shadow: none;
}

.ma-auth--a .ma-auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ma-space-3) var(--ma-space-4);
  margin: 0;
}

.ma-auth--a .ma-auth-links a {
  font-size: 13px;
  color: var(--ma-text);
  text-underline-offset: 4px;
}

.ma-auth--a .ma-auth-stage {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 100dvh;
  background: var(--ma-bg);
  border-left: 1px solid var(--ma-line);
  overflow: hidden;
}

.ma-auth--a .ma-auth-stage-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.ma-auth--a .ma-card-grid--auth,
.ma-auth--a .ma-auth-stage-scroll .ma-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ma-space-1);
  align-content: start;
  padding: var(--ma-space-3) var(--ma-space-2);
}

.ma-auth--a .ma-card-grid .ma-card {
  border: none;
  width: 100%;
  min-width: 0;
  padding: 0 0 var(--ma-space-2);
}

.ma-auth--a .ma-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
}

.ma-auth--a .ma-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
}

.ma-auth--a .ma-card-head {
  padding-top: var(--ma-space-2);
}

.ma-auth--a .ma-card-brand,
.ma-auth--a .ma-card-price {
  font-size: 13px;
}

.ma-auth--a .ma-card-actions {
  display: none;
}

@media (max-width: 900px) {
  .ma-auth--a .ma-auth-pane {
    padding-left: var(--ma-space-5);
    padding-right: var(--ma-space-5);
  }
}

@media (max-width: 767px) {
  body.ma-auth.ma-auth--a {
    max-height: none;
    overflow: auto;
  }

  .ma-auth--a .ma-auth-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: none;
    column-gap: 0;
  }

  .ma-auth--a .ma-auth-stage {
    order: -1;
    flex: 0 0 auto;
    max-height: min(42dvh, 360px);
    border-left: 0;
    border-bottom: 1px solid var(--ma-line);
  }

  .ma-auth--a .ma-auth-pane {
    max-height: none;
    flex: 1 1 auto;
  }

  .ma-auth--a .ma-card-grid--auth,
  .ma-auth--a .ma-auth-stage-scroll .ma-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ma-auth--a .ma-card-head,
  .ma-auth--a .ma-card-title,
  .ma-auth--a .ma-card-price {
    display: none;
  }

  .ma-auth--a .ma-card {
    padding-bottom: 0;
  }

  .ma-auth--a .ma-auth-form,
  .ma-auth--a .ma-auth-copy {
    gap: var(--ma-space-3);
  }

  .ma-auth--a .ma-auth-pane {
    padding: var(--ma-space-5) var(--ma-space-4) var(--ma-space-7);
    justify-content: flex-start;
  }
}
