/* Login screen, from the Claude Design "Partner Portal Log In" file.
   Values mirror the SPREEAI design system TextField and Button components.
   Loaded last so the older login-* layers in styles.css and nicole-connected.css,
   which the lifecycle screens still use, never reach these auth-* classes. */

.auth-screen {
  --auth-ink: #000;
  --auth-muted: #595959;
  --auth-line: #bdbdbd;
  --auth-error: #d32f2f;
  --auth-disabled-surface: #f1f1f1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-wrap: wrap;
  background: #fff;
  color: var(--auth-ink);
  font-family: Afacad, sans-serif;
  letter-spacing: normal;
}
.auth-screen [hidden] { display: none !important; }

/* Hero */
.auth-hero { position: relative; flex: 1 1 520px; min-height: 420px; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; background: #212121; color: #fff; }
.auth-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% top; }
.auth-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,.75) 100%); }
.auth-hero-logo { position: relative; align-self: flex-start; width: 100px; height: auto; filter: brightness(0) invert(1); }
.auth-benefits { position: relative; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; border-top: .5px solid rgba(255,255,255,.5); }
.auth-benefits li { padding: 24px 16px 8px; display: flex; flex-direction: column; gap: 40px; border-left: .5px solid rgba(255,255,255,.5); }
.auth-benefits li:first-child { padding-left: 0; border-left: 0; }
.auth-benefits span { font-size: 12px; line-height: 16px; color: #bdbdbd; }
.auth-benefits strong { font-size: 18px; line-height: 24px; font-weight: 500; color: #fff; }

/* Form column */
/* .auth-column grows to fill the column and centres the panel itself. Keeping
   .auth-main at flex-start means that when the column scrolls on desktop, the
   top of the form can't get clipped out of reach. */
.auth-main { position: relative; flex: 1 1 520px; min-height: 0; padding: 64px 24px 32px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; background: #fff; }
.auth-column { width: 100%; max-width: 400px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.auth-panel { display: flex; flex-direction: column; gap: 32px; }
.auth-header { display: flex; flex-direction: column; gap: 8px; }
.auth-screen .auth-header h1 { margin: 0; font-family: inherit; font-size: 32px; line-height: 44px; font-weight: 500; letter-spacing: normal; color: var(--auth-ink); }
.auth-header p { margin: 0; font-size: 16px; line-height: 24px; color: var(--auth-muted); text-wrap: pretty; }
.auth-screen a { color: var(--auth-ink); text-decoration: underline; text-underline-offset: 3px; }
.auth-screen a:hover { color: var(--auth-ink); opacity: .7; }
.auth-dashboard-link { position: absolute; top: 24px; right: 24px; font-size: 14px; line-height: 20px; }

/* Fields (design system TextField) */
.auth-form { margin: 0; display: flex; flex-direction: column; gap: 24px; }
.auth-field { display: flex; flex-direction: column; gap: 8px; }
.auth-screen .auth-field label { font-size: 14px; line-height: 20px; font-weight: 400; letter-spacing: normal; text-transform: none; color: var(--auth-ink); }
.auth-input { height: 48px; padding: 12px 8px; display: flex; align-items: center; border-radius: 4px; background: #fff; box-shadow: inset 0 0 0 1px var(--auth-line); }
.auth-input:focus-within { box-shadow: inset 0 0 0 1px var(--auth-ink); }
.auth-input:has(input[aria-invalid="true"]) { box-shadow: inset 0 0 0 1px var(--auth-error); }
.auth-screen .auth-input input { flex: 1; min-width: 0; height: 24px; margin: 0; padding: 0; border: 0; border-radius: 0; outline: none; box-shadow: none; background: transparent; font-family: inherit; font-size: 18px; line-height: 24px; font-weight: 400; color: var(--auth-ink); }
.auth-screen .auth-input input::placeholder { color: #757575; opacity: 1; }
.auth-field-help,.auth-field-error,.auth-form-error { margin: 0; font-size: 14px; line-height: 20px; }
.auth-field-help { color: var(--auth-muted); }
.auth-field:has(input[aria-invalid="true"]) .auth-field-help { display: none; }
.auth-field-error,.auth-form-error { color: var(--auth-error); }
.auth-password { display: flex; flex-direction: column; gap: 8px; }

/* Buttons (design system Button, large) */
.auth-button { width: 100%; height: 48px; padding: 12px 32px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 120px; font-family: inherit; font-size: 18px; line-height: 24px; font-weight: 400; white-space: nowrap; cursor: pointer; transition: background-color .15s ease, color .15s ease, box-shadow .15s ease; }
.auth-button svg { flex: none; }
.auth-button-primary { background: var(--auth-ink); color: #fff; }
.auth-button-primary:hover { background: transparent; color: var(--auth-ink); box-shadow: inset 0 0 0 1px var(--auth-ink); }
.auth-button-secondary { background: transparent; color: var(--auth-ink); box-shadow: inset 0 0 0 1px var(--auth-ink); }
.auth-button-secondary:hover { background: var(--auth-ink); color: #fff; }
.auth-button-primary:disabled,.auth-button-primary:disabled:hover { background: var(--auth-disabled-surface); color: var(--auth-muted); box-shadow: none; cursor: not-allowed; }
.auth-button-secondary:disabled,.auth-button-secondary:disabled:hover { background: transparent; color: var(--auth-line); box-shadow: inset 0 0 0 1px var(--auth-line); cursor: not-allowed; }
.auth-text-button { align-self: flex-end; padding: 0; border: 0; background: none; color: var(--auth-ink); font-family: inherit; font-size: 14px; line-height: 20px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.auth-text-button:hover { opacity: .7; }
.auth-text-button.auth-back { align-self: flex-start; }

/* Single sign-on */
.auth-sso { display: flex; flex-direction: column; gap: 24px; }
.auth-divider { display: flex; align-items: center; gap: 16px; font-size: 14px; line-height: 20px; color: var(--auth-muted); }
.auth-divider span:first-child,.auth-divider span:last-child { flex: 1; height: 0; border-top: .5px solid rgba(0,0,0,.5); }
.auth-sso-buttons { display: grid; gap: 12px; }
.auth-provider-status { margin: 0; font-size: 14px; line-height: 20px; color: var(--auth-muted); text-align: center; }
.auth-provider-status:not(:empty) { margin-top: 12px; }
.auth-provider-error { margin-top: 12px; text-align: center; }
.auth-shopify-form { gap: 12px; }
.auth-provider-note { margin: 0; font-size: 12px; line-height: 16px; color: var(--auth-muted); text-align: center; }

.auth-signup { margin: 0; font-size: 16px; line-height: 24px; color: var(--auth-muted); text-align: center; }
.auth-footnote { margin: 32px 0 0; font-size: 12px; line-height: 16px; color: var(--auth-muted); text-align: center; }

/* Password reset */
.auth-success { display: flex; flex-direction: column; gap: 8px; }
.auth-success strong { font-size: 18px; line-height: 24px; font-weight: 500; }
.auth-success p { margin: 0 0 8px; font-size: 16px; line-height: 24px; color: var(--auth-muted); }

/* Sign-up flow (Claude Design "Sign up - No plan or payment") */
.auth-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.auth-back-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; margin-bottom: -8px; font-size: 14px; line-height: 20px; }
.auth-screen a.auth-back-link:hover { opacity: 1; text-decoration-thickness: 2px; }
.auth-stepper { position: relative; height: 56px; margin: 0; padding: 0; list-style: none; }
.auth-stepper::before { content: ""; position: absolute; top: 13px; left: 13px; right: 13px; height: 1px; background: #c9c9cf; }
.auth-stepper li { position: absolute; top: 0; left: calc(var(--i) * (100% - 27px) / 3); width: 27px; }
.auth-stepper-dot { position: relative; z-index: 1; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px #c9c9cf; font-size: 12.5px; color: var(--auth-muted); }
.auth-stepper .on .auth-stepper-dot,.auth-stepper .done .auth-stepper-dot { background: #111; color: #fff; box-shadow: none; }
.auth-stepper-label { position: absolute; top: 35px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 14px; line-height: 20px; color: #808080; }
.auth-stepper .on .auth-stepper-label { color: #111; }
.auth-stepper li:first-child .auth-stepper-label { left: 0; transform: none; }
.auth-stepper li:last-child .auth-stepper-label { left: auto; right: 0; transform: none; }
.auth-field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.auth-input-reveal { padding-right: 4px; }
.auth-reveal { flex: none; width: 32px; height: 32px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 9999px; background: transparent; color: #404040; cursor: pointer; }
.auth-reveal:hover { background: #f1f1f1; }
.auth-reveal[aria-pressed="true"] { color: var(--auth-ink); }
.auth-reqs { margin: -12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.auth-reqs li { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; color: #808080; }
.auth-reqs-dot { flex: none; width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid #bfbfbf; color: #fff; box-sizing: border-box; }
.auth-reqs-dot svg { display: none; width: 10px; height: 10px; }
.auth-reqs li.met { color: var(--auth-ink); }
.auth-reqs li.met .auth-reqs-dot { background: #000; border-color: #000; }
.auth-reqs li.met .auth-reqs-dot svg { display: block; }
.auth-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 20px; color: #262626; cursor: pointer; }
.auth-screen .auth-consent input { flex: none; width: 18px; height: 18px; min-height: 0; margin: 1px 0 0; padding: 0; accent-color: #000; box-shadow: none; }
.auth-consent input[aria-invalid="true"] { outline: 2px solid var(--auth-error); outline-offset: 1px; }
.auth-consent + .auth-field-error { margin-top: -16px; }
.auth-alert { margin: 0; padding: 12px 16px; border-radius: 4px; font-size: 15px; line-height: 22px; }
.auth-alert b { display: block; font-weight: 500; }
.auth-alert:focus { outline: none; }
.auth-alert-bad { background: #fdecec; color: #7a1b1b; }
.auth-alert-ok { background: #e3f5ec; color: #124d33; }
.auth-fine,.auth-note { margin: 0; font-size: 14px; line-height: 20px; color: var(--auth-muted); }
.auth-note { font-size: 16px; line-height: 24px; color: #262626; }
.auth-note b { font-weight: 500; overflow-wrap: anywhere; }
.auth-alt-link { margin: 0; font-size: 16px; line-height: 24px; color: var(--auth-muted); text-align: center; }
.auth-alt-link button { padding: 0; border: 0; background: none; font: inherit; color: var(--auth-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.auth-alt-link button:disabled { color: var(--auth-muted); text-decoration: none; cursor: progress; }
.auth-spin { flex: none; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: auth-spin .8s linear infinite; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .auth-spin { animation-duration: 2.4s; } }
.auth-button-primary:disabled .auth-spin { color: var(--auth-muted); }
.auth-screen a.auth-button { text-decoration: none; }
.auth-screen a.auth-button-primary { color: #fff; }
.auth-screen a.auth-button-primary:hover { opacity: 1; color: var(--auth-ink); }
.auth-status-card { display: flex; flex-direction: column; gap: 12px; padding: 24px 28px 26px; border: 1px solid #d8d8d8; border-radius: 8px; }
.auth-status-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-screen .auth-status-head h2 { margin: 0; font: 500 18px/24px Afacad, sans-serif; color: var(--auth-ink); }
.auth-status-card p { margin: 0; font-size: 15px; line-height: 22px; color: var(--auth-muted); }
.auth-pill { display: inline-flex; align-items: center; padding: 0 10px; border-radius: 9999px; font-size: 14px; line-height: 20px; font-weight: 500; white-space: nowrap; }
.auth-pill-blue { background: #ddedff; color: #2c63a1; }

/* Side by side (both 520px columns fit): the hero fills the viewport height and
   only the form column scrolls. */
@media (min-width: 1040px) {
  .auth-screen { height: 100vh; height: 100dvh; flex-wrap: nowrap; overflow: hidden; }
  .auth-hero { min-height: 0; }
  .auth-main { overflow-y: auto; overscroll-behavior: contain; }
}

@media (max-width: 480px) {
  .auth-field-pair { grid-template-columns: minmax(0, 1fr); }
  .auth-status-card { padding: 18px; }
}
