/* Login-only extension of the Nexus appearance tokens. */
.smmos-auth-page { color: var(--app-text); background: var(--app-body-bg); }
.smmos-auth-main { min-height: 100vh; min-height: 100dvh; display: grid; align-items: center; padding: clamp(1rem, 3vw, 3rem); }
.smm-auth-shell { width: min(100%, 72rem); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
.smm-auth-shell *, .smm-auth-shell *::before, .smm-auth-shell *::after { box-sizing: border-box; }
.smm-auth-shell > * { min-width: 0; }
.smm-auth-intro { padding: clamp(1.25rem, 4vw, 3.75rem); padding-inline-start: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2.5rem; }
.smm-auth-brand { display: inline-flex; align-items: center; gap: .8rem; max-width: 100%; color: var(--app-heading); font-size: 1.3rem; font-weight: 700; letter-spacing: -.035em; text-decoration: none; overflow-wrap: anywhere; }
.smm-auth-brand:hover { color: var(--app-primary); }
.smm-auth-brand-mark { width: 2.65rem; height: 2.65rem; border-radius: .75rem; display: grid; place-items: center; background: var(--app-primary); color: var(--app-on-primary, #fff); flex: 0 0 auto; font-size: 1.25rem; }
.smm-auth-story { margin-block: auto; max-width: 29rem; }
.smm-auth-eyebrow { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.25rem; font-size: .8rem; font-weight: 600; color: var(--app-text-muted); }
.smm-auth-eyebrow > span { width: .5rem; height: .5rem; border-radius: 50%; background: var(--app-primary); }
.smm-auth-intro h1 { font-size: clamp(2.3rem, 4.3vw, 3.7rem); font-weight: var(--app-font-weight-heading, 600); line-height: 1.08; letter-spacing: -.055em; color: var(--app-heading); text-wrap: balance; margin: 0 0 1.25rem; }
.smm-auth-lead { max-width: 38ch; color: var(--app-text-muted); font-size: 1rem; line-height: 1.75; margin: 0; text-wrap: pretty; }
.smm-auth-workflow { list-style: none; padding: 0; margin: 2.25rem 0 0; display: grid; gap: 1.35rem; }
.smm-auth-workflow li { display: flex; align-items: flex-start; gap: .95rem; position: relative; }
.smm-auth-step { width: 2.1rem; height: 2.1rem; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--app-border-strong); border-radius: .6rem; font-size: .75rem; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--app-primary); background: var(--app-surface); }
.smm-auth-workflow strong { display: block; font-size: .9rem; color: var(--app-heading); font-weight: 600; margin-bottom: .2rem; }
.smm-auth-workflow p { font-size: .82rem; line-height: 1.6; color: var(--app-text-muted); margin: 0; max-width: 35ch; }
.smm-auth-home { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; text-decoration: none; color: var(--app-text); background: var(--app-surface); border: 1px solid var(--app-border-strong); border-radius: 999px; padding: .55rem 1.1rem; box-shadow: 0 2px 10px color-mix(in srgb, var(--app-heading) 8%, transparent); transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease; }
.smm-auth-home:hover { color: var(--app-primary); border-color: var(--app-primary); box-shadow: 0 4px 16px color-mix(in srgb, var(--app-primary) 25%, transparent); transform: translateY(-1px); }
.smm-auth-home:focus-visible { outline: 2px solid var(--app-primary); outline-offset: 2px; }
.smm-auth-panel { background: var(--app-surface); border-radius: 1.5rem; padding: clamp(1.5rem, 3.6vw, 3.25rem); box-shadow: 0 12px 44px color-mix(in srgb, var(--app-heading) 7%, transparent); align-self: center; }
.smm-auth-panel-inner { max-width: 26rem; margin-inline: auto; }
.smm-auth-panel-label { color: var(--app-primary); font-size: .75rem; font-weight: 600; display: block; margin-bottom: .7rem; }
.smm-auth-panel h2 { font-size: clamp(1.55rem, 2.6vw, 2.05rem); line-height: 1.2; letter-spacing: -.035em; color: var(--app-heading); margin: 0 0 .65rem; text-wrap: balance; }
.smm-auth-description { color: var(--app-text-muted); line-height: 1.7; font-size: .88rem; margin-bottom: 1.75rem; }
.smm-auth-field { margin-bottom: 1.15rem; }
.smm-auth-field .form-label { font-size: .83rem; font-weight: 600; margin-bottom: .45rem; color: var(--app-text); }
.smm-auth-input { position: relative; }
.smm-auth-input .form-control { min-height: 3.2rem; font-size: 1rem; padding-block: .7rem; padding-inline: 2.65rem 1rem; border-radius: .65rem; border-color: var(--app-border-strong); color: var(--app-text); transition: border-color 180ms ease, box-shadow 180ms ease; }
.smm-auth-input input[name="password"] { padding-inline-end: 3.25rem; }
.smm-auth-input .form-control.is-invalid { background-image: none; border-color: var(--app-danger); }
.smm-auth-input-icon { position: absolute; inset-inline-start: .95rem; top: 50%; transform: translateY(-50%); color: var(--app-text-muted); pointer-events: none; }
.smm-auth-password-toggle { position: absolute; inset-inline-end: .3rem; top: 50%; transform: translateY(-50%); min-width: 2.65rem; min-height: 2.65rem; display: grid; place-items: center; border: 0; border-radius: .4rem; background: transparent; color: var(--app-text-muted); font-size: 1.05rem; }
.smm-auth-password-toggle:hover { background: var(--app-surface-hover); color: var(--app-primary); }
.smm-auth-error, .smm-auth-caps { margin: .45rem 0 0; font-size: .78rem; line-height: 1.5; }
.smm-auth-error { color: var(--app-danger); }
.smm-auth-caps { color: var(--app-warning); }
.smm-auth-options { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; font-size: .8rem; margin: .2rem 0 1.4rem; }
.smm-auth-options .form-check { margin: 0; min-height: auto; }
.smm-auth-options a, .smm-auth-register a, .smm-auth-switch a { color: var(--app-primary); text-decoration: none; font-weight: 600; }
.smm-auth-shell a:hover { text-decoration: underline; text-underline-offset: .2rem; }
.smm-auth-submit { width: 100%; min-height: 3.15rem; border-radius: .65rem; display: flex; align-items: center; justify-content: center; gap: .75rem; font-size: .92rem; font-weight: 600; transition: transform 180ms ease, background-color 180ms ease; }
.smm-auth-submit:active:not(:disabled) { transform: translateY(1px); }
.smm-auth-submit [data-auth-arrow] { margin-inline-start: auto; }
.smm-auth-submit [data-auth-submit-label] { margin-inline-start: auto; }
.smm-auth-submit [data-auth-spinner] { margin-inline-start: auto; }
.smm-auth-divider { display: flex; align-items: center; gap: .9rem; margin: 1.4rem 0; color: var(--app-text-muted); font-size: .8rem; }
.smm-auth-divider::before, .smm-auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--app-border); }
.smm-auth-social { display: grid; gap: .65rem; }
.smm-auth-social .btn { display: flex; align-items: center; justify-content: center; gap: .75rem; min-height: 2.85rem; border-color: var(--app-border-strong); color: var(--app-text); font-size: .85rem; border-radius: .6rem; }
.smm-auth-register, .smm-auth-switch { font-size: .81rem; line-height: 1.7; color: var(--app-text-muted); text-align: center; margin: 1.3rem 0 0; }
.smm-auth-demo { border-top: 1px solid var(--app-border); margin-top: 1.65rem; padding-top: 1.35rem; }
.smm-auth-demo-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.smm-auth-demo-heading h3 { color: var(--app-heading); font-size: .9rem; font-weight: 600; margin: 0; }
.smm-auth-demo-heading > span { background: var(--app-primary-soft); color: var(--app-primary); padding: .2rem .4rem; border-radius: .25rem; font-size: .65rem; font-weight: 600; }
.smm-auth-demo > p { font-size: .75rem; color: var(--app-text-muted); line-height: 1.6; margin: .5rem 0 .9rem; }
.smm-auth-demo-list { display: grid; gap: .5rem; }
.smm-auth-demo-button { width: 100%; display: flex; align-items: center; gap: .75rem; padding: .75rem; text-align: start; border: 1px solid var(--app-border); border-radius: .6rem; background: var(--app-surface-muted); color: var(--app-text); transition: background-color 180ms ease, border-color 180ms ease; }
.smm-auth-demo-button:hover { border-color: var(--app-primary); background: var(--app-primary-soft); }
.smm-auth-demo-button > i:first-child { color: var(--app-primary); font-size: 1.1rem; }
.smm-auth-demo-button > i:last-child { margin-inline-start: auto; color: var(--app-text-muted); }
.smm-auth-demo-button span { min-width: 0; }
.smm-auth-demo-button strong { display: block; font-size: .8rem; font-weight: 600; }
.smm-auth-demo-button small { display: block; font-size: .71rem; color: var(--app-text-muted); margin-top: .1rem; overflow-wrap: anywhere; }
.smm-auth-demo-button:disabled { opacity: .65; cursor: wait; }
.smm-auth-alert { border-radius: .6rem; font-size: .82rem; line-height: 1.6; overflow-wrap: anywhere; }
.smm-auth-shell :is(a,button,input):focus-visible, .auth-skip:focus-visible { outline: 3px solid var(--app-primary); outline-offset: 3px; }
.auth-skip { position: absolute; inset-inline-start: 1rem; top: 1rem; padding: .7rem 1rem; background: var(--app-surface); color: var(--app-primary); z-index: 2; transform: translateY(-200%); }
.auth-skip:focus { transform: translateY(0); }
.smm-auth-shell [hidden] { display: none !important; }
[dir="rtl"] .smm-auth-home .bi-arrow-left, [dir="rtl"] .smm-auth-submit [data-auth-arrow] { transform: scaleX(-1); }
@media (max-width: 767.98px) {
    .smmos-auth-main { align-items: start; padding: 1.25rem 1rem 2rem; }
    .smm-auth-shell { display: block; max-width: 30rem; }
    .smm-auth-intro { padding: 0 0 1.5rem; gap: 1rem; }
    .smm-auth-story { max-width: none; }
    .smm-auth-eyebrow, .smm-auth-workflow { display: none; }
    .smm-auth-intro h1 { font-size: clamp(1.75rem, 7vw, 2.3rem); letter-spacing: -.04em; margin-bottom: .65rem; }
    .smm-auth-lead { font-size: .85rem; line-height: 1.65; max-width: none; }
    .smm-auth-panel { padding: 1.65rem 1.25rem; border-radius: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
    .smm-auth-shell *, .auth-skip { transition: none !important; animation: none !important; }
}
