/* Public landing and authentication only. Workspace styles stay in site.css. */
.nx-public-page {
    --nx-public-width: 76rem;
    --nx-public-gutter: clamp(1.25rem, 5vw, 4rem);
    --nx-public-light: #ad9aff;
    --nx-public-divider: rgb(183 171 255 / 16%);
    --nx-public-glow: 0 8px 32px rgb(89 71 245 / 30%);
    --nx-public-title-gradient: linear-gradient(100deg, #b578f5 5%, #9e97ff 55%, #71bfff 100%);
    --nx-public-error-text: #ffcad6;
    position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: 100dvh;
    background: var(--nx-navy);
}
.nx-public-atmosphere { position: absolute; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; background: radial-gradient(ellipse at 76% 35%, rgb(89 71 245 / 13%), transparent 45%), radial-gradient(ellipse at 3% 98%, rgb(67 136 255 / 9%), transparent 40%); }
.nx-public-atmosphere::before { content: ""; position: absolute; inset: 0; background: url('../images/nexora-waves.svg') center / cover no-repeat; opacity: .8; }
.nx-public-container { width: min(100%, calc(var(--nx-public-width) + 2 * var(--nx-public-gutter))); margin-inline: auto; padding-inline: var(--nx-public-gutter); }
.nx-public-header { position: relative; z-index: var(--nx-z-nav); display: flex; align-items: center; justify-content: space-between; gap: var(--nx-space-4); padding-block: var(--nx-space-6); }
.nx-public-brand { display: inline-flex; align-items: center; gap: var(--nx-space-2); color: var(--nx-ink); text-decoration: none; }
.nx-public-brand img { width: 3rem; height: 3rem; }
.nx-public-brand span { font-size: 1.875rem; font-weight: var(--nx-weight-bold); letter-spacing: -.055em; }
.nx-public-nav { gap: var(--nx-space-5); }
.nx-public-nav a { color: var(--nx-ink); }
.nx-public-page .nx-button--primary { border-color: rgb(173 154 255 / 35%); box-shadow: var(--nx-public-glow); }
.nx-public-nav .nx-button--primary { padding-inline: var(--nx-space-5); color: var(--nx-on-primary); background: var(--nx-gradient); }
.nx-public-nav .nx-button--primary:hover { background: var(--nx-primary-deep); }
.nx-public-main { flex: 1; min-width: 0; }
.nx-public-hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.1fr); align-items: center; min-height: 37rem; gap: var(--nx-space-4); padding-block: var(--nx-space-8) var(--nx-space-4); }
.nx-public-copy { position: relative; z-index: 1; padding-block: var(--nx-space-6); }
.nx-public-eyebrow { display: flex; align-items: center; gap: var(--nx-space-2); margin: 0 0 var(--nx-space-5); color: var(--nx-public-light); font-size: var(--nx-text-xs); font-weight: var(--nx-weight-bold); letter-spacing: .16em; line-height: 1.5; }
.nx-public-eyebrow > span { width: .375rem; height: .375rem; border-radius: var(--nx-radius-pill); background: var(--nx-public-light); box-shadow: 0 0 12px var(--nx-primary); }
.nx-public-copy h1 { margin: 0; font-size: clamp(3.75rem, 6.1vw, 5.75rem); font-weight: var(--nx-weight-bold); letter-spacing: -.055em; line-height: 1.025; }
.nx-public-copy h1 span { color: var(--nx-public-light); background: var(--nx-public-title-gradient); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nx-public-lead { max-width: 26rem; margin: var(--nx-space-6) 0; color: var(--nx-muted); font-size: var(--nx-text-lg); line-height: 1.7; }
.nx-public-cta { min-height: 3.5rem; justify-content: space-between; gap: var(--nx-space-8); padding-inline: var(--nx-space-6); font-size: var(--nx-text-base); }
.nx-public-caption { margin: var(--nx-space-3) 0 0; color: var(--nx-muted); font-size: var(--nx-text-sm); }
.nx-public-art { min-width: 0; margin: 0; position: relative; }
.nx-public-art img { display: block; width: 112%; max-width: none; height: auto; margin-left: -7%; }
.nx-public-art figcaption { margin-top: calc(-1 * var(--nx-space-6)); color: var(--nx-muted); font-size: var(--nx-text-xs); text-align: center; }
.nx-public-steps { position: relative; padding-block: var(--nx-space-8) var(--nx-space-12); scroll-margin-top: var(--nx-space-6); }
.nx-public-section-heading { margin-bottom: var(--nx-space-6); }
.nx-public-section-heading .nx-public-eyebrow { margin-bottom: var(--nx-space-2); }
.nx-public-section-heading h2 { margin: 0; font-size: 1.375rem; font-weight: var(--nx-weight-medium); letter-spacing: -.025em; }
.nx-public-steps ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--nx-space-8); padding: 0; margin: 0; list-style: none; }
.nx-public-steps li { display: flex; align-items: start; gap: var(--nx-space-4); min-width: 0; }
.nx-public-step-icon { display: grid; flex: none; place-items: center; width: 3.25rem; height: 3.25rem; border: 1px solid rgb(173 154 255 / 35%); border-radius: var(--nx-radius-pill); background: linear-gradient(145deg, rgb(89 71 245 / 24%), rgb(22 29 57 / 70%)); box-shadow: inset 0 1px 8px rgb(173 154 255 / 15%), 0 0 20px rgb(89 71 245 / 12%); color: #d5caff; }
.nx-public-step-icon svg { width: 1.5rem; height: 1.5rem; }
.nx-public-steps h3 { margin: 0 0 var(--nx-space-1); font-size: var(--nx-text-base); font-weight: var(--nx-weight-medium); }
.nx-public-steps h3 span { color: var(--nx-public-light); }
.nx-public-steps li p { max-width: 28ch; margin: 0; color: var(--nx-muted); font-size: var(--nx-text-sm); line-height: 1.6; }
.nx-public-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--nx-space-3); padding-block: var(--nx-space-5); border-top: 1px solid var(--nx-public-divider); }
.nx-public-footer a { color: var(--nx-ink); text-decoration: none; font-weight: var(--nx-weight-bold); letter-spacing: -.03em; }
.nx-public-footer p { margin: 0; color: var(--nx-muted); font-size: var(--nx-text-xs); }
.nx-public-footer p span { margin-inline: var(--nx-space-1); }
.nx-public-back { display: inline-flex; align-items: center; gap: var(--nx-space-2); min-height: var(--nx-control-height); color: var(--nx-muted); text-decoration: none; font-size: var(--nx-text-sm); }
.nx-public-back:hover { color: var(--nx-ink); }

/* Authentication follows the centered, atmospheric reference composition. */
.nx-auth-header { padding-block: var(--nx-space-5); }
.nx-auth-page .nx-public-main { display: grid; align-items: center; padding: var(--nx-space-5) var(--nx-public-gutter) var(--nx-space-12); }
.nx-auth-page .nx-public-atmosphere::before { background-size: auto 120%; background-position: center; opacity: .85; }
.nx-auth-page .nx-public-atmosphere { background: radial-gradient(ellipse at 48% 7%, rgb(89 71 245 / 20%), transparent 45%), radial-gradient(ellipse at 90% 100%, rgb(167 77 235 / 12%), transparent 35%); }
.nx-auth { width: min(100%, 24rem); margin-inline: auto; text-align: center; }
.nx-auth-brand { display: grid; justify-items: center; gap: var(--nx-space-2); width: fit-content; margin: 0 auto var(--nx-space-8); color: var(--nx-ink); text-decoration: none; }
.nx-auth-brand img { width: 5.5rem; height: 5.5rem; filter: drop-shadow(0 0 28px rgb(89 71 245 / 30%)); }
.nx-auth-brand span { font-size: 2.75rem; font-weight: var(--nx-weight-bold); line-height: 1.1; letter-spacing: -.055em; }
.nx-auth-heading { margin-bottom: var(--nx-space-8); }
.nx-auth-heading .nx-public-eyebrow { justify-content: center; margin-bottom: var(--nx-space-3); font-size: .6875rem; }
.nx-auth-heading h1 { margin: 0 0 var(--nx-space-2); font-size: 1.625rem; font-weight: var(--nx-weight-medium); letter-spacing: -.025em; }
.nx-auth-heading > p:last-child { margin: 0; color: var(--nx-muted); font-size: var(--nx-text-sm); }
.nx-auth-form { display: grid; gap: var(--nx-space-5); text-align: left; }
.nx-auth-form .nx-field { gap: var(--nx-space-2); }
.nx-auth-form .nx-field > label { font-size: var(--nx-text-sm); font-weight: var(--nx-weight-medium); }
.nx-auth-input { --nx-ink: #171c35; --nx-muted: #58647c; --nx-surface: #ffffff; --nx-focus: #5947f5; --nx-border-strong: #8994af; position: relative; color-scheme: light; }
.nx-auth-input > .nx-icon { position: absolute; inset: 1rem auto auto var(--nx-space-4); z-index: 1; color: var(--nx-muted); pointer-events: none; }
/* Match the shared control selector specificity so icon padding and touch height win. */
.nx-auth-input input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=hidden]):not([type=file]) { width: 100%; min-height: 3.25rem; padding-left: 2.875rem; border-radius: var(--nx-radius-sm); box-shadow: 0 4px 16px rgb(0 0 0 / 10%); font-size: var(--nx-text-base); }
.nx-auth-input--password input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=hidden]):not([type=file]) { padding-right: 3.5rem; }
.nx-auth-toggle { position: absolute; inset: var(--nx-space-1) var(--nx-space-1) var(--nx-space-1) auto; min-width: var(--nx-control-height); min-height: var(--nx-control-height); padding: var(--nx-space-2); border: 0; border-radius: var(--nx-radius-sm); background: transparent; color: var(--nx-muted); box-shadow: none; }
.nx-auth-toggle:hover { color: var(--nx-primary); background: var(--nx-primary-soft); }
.nx-auth-submit { position: relative; width: 100%; min-height: 3.25rem; justify-content: center; margin-top: var(--nx-space-2); padding-inline: var(--nx-space-5); font-size: var(--nx-text-base); }
.nx-auth-submit-label { padding-inline: 1.5rem; }
.nx-auth-submit > .nx-icon, .nx-auth-submit > .nx-spinner { position: absolute; right: var(--nx-space-5); top: 50%; transform: translateY(-50%); }
.nx-auth-help { margin: var(--nx-space-1) 0 0; color: var(--nx-muted); font-size: var(--nx-text-xs); line-height: 1.8; text-align: center; }
.nx-auth-errors { padding: var(--nx-space-3) var(--nx-space-4); border: 1px solid var(--nx-danger-border); border-radius: var(--nx-radius-sm); background: rgb(174 35 63 / 16%); color: var(--nx-public-error-text); font-size: var(--nx-text-sm); }
.nx-auth-errors ul { padding-left: var(--nx-space-4); margin: 0; }
.nx-auth-page .nx-public-footer { align-items: center; justify-content: center; flex-direction: column; border: 0; padding-bottom: var(--nx-space-6); gap: var(--nx-space-1); }

@media (min-width: 100rem) {
    .nx-public-hero { min-height: 42rem; }
}
@media (max-width: 64rem) {
    .nx-public-hero { min-height: 32rem; }
    .nx-public-copy h1 { font-size: clamp(3rem, 6.3vw, 4.75rem); }
    .nx-public-art img { width: 108%; margin-left: -4%; }
    .nx-public-steps ol { gap: var(--nx-space-5); }
    .nx-public-steps li { flex-direction: column; }
}
@media (max-width: 48rem) {
    .nx-public-header { padding-block: var(--nx-space-4); }
    .nx-public-brand img { width: 2.5rem; height: 2.5rem; }
    .nx-public-brand span { font-size: 1.625rem; }
    .nx-public-nav { gap: var(--nx-space-1); }
    .nx-public-nav .nx-button--primary { margin-top: var(--nx-space-2); }
    .nx-public-hero { grid-template-columns: 1fr; min-height: 0; gap: 0; padding-top: var(--nx-space-5); }
    .nx-public-copy { padding-block: 0; }
    .nx-public-copy h1 { font-size: clamp(3.25rem, 10.5vw, 5rem); }
    .nx-public-lead { max-width: 36rem; margin-block: var(--nx-space-5); font-size: var(--nx-text-base); }
    .nx-public-art { width: min(100%, 31rem); justify-self: center; margin-top: var(--nx-space-3); }
    .nx-public-art img { width: 100%; margin: 0; }
    .nx-public-art figcaption { margin-top: calc(-1 * var(--nx-space-4)); font-size: .6875rem; }
    .nx-public-steps { padding-top: var(--nx-space-6); }
    .nx-public-steps ol { grid-template-columns: 1fr; gap: var(--nx-space-6); }
    .nx-public-steps li { flex-direction: row; }
    .nx-public-steps li p { max-width: 40ch; }
    .nx-public-section-heading h2 { font-size: var(--nx-text-lg); }
    .nx-public-footer { flex-direction: column; align-items: start; }
}
@media (max-width: 30rem) {
    .nx-public-copy h1 { font-size: clamp(2.875rem, 12vw, 3.5rem); }
    .nx-public-copy .nx-public-eyebrow { font-size: .6875rem; }
    .nx-public-cta { width: 100%; gap: var(--nx-space-4); }
    .nx-auth-page .nx-public-main { padding-top: var(--nx-space-2); padding-bottom: var(--nx-space-8); }
    .nx-auth-brand { margin-bottom: var(--nx-space-6); }
    .nx-auth-brand img { width: 4.5rem; height: 4.5rem; }
    .nx-auth-brand span { font-size: 2.375rem; }
    .nx-auth-heading { margin-bottom: var(--nx-space-6); }
}
/* Keep the phone composition. Desktop saves space in gaps, not in controls or
   text; the existing 100dvh minimum still lets real content grow and scroll. */
@media (min-width: 48.01rem) {
    .nx-auth-header { padding-block: var(--nx-space-3); }
    .nx-auth-page .nx-public-main { padding-block: var(--nx-space-2) var(--nx-space-4); }
    .nx-auth-brand { gap: var(--nx-space-1); margin-bottom: var(--nx-space-4); }
    .nx-auth-heading { margin-bottom: var(--nx-space-4); }
    .nx-auth-heading .nx-public-eyebrow { margin-bottom: var(--nx-space-2); }
    .nx-auth-heading h1 { margin-bottom: var(--nx-space-1); }
    .nx-auth-form { gap: var(--nx-space-3); }
    .nx-auth-form .nx-field { gap: .375rem; }
    .nx-auth-submit, .nx-auth-help { margin-top: 0; }
    .nx-auth-page .nx-public-footer { padding-block: var(--nx-space-2) var(--nx-space-3); }
}
@media (max-height: 44rem) and (min-width: 48.01rem) {
    .nx-auth-header { padding-block: var(--nx-space-1); }
    .nx-auth-page .nx-public-main { padding-block: var(--nx-space-1); }
    .nx-auth-brand { gap: .125rem; margin-bottom: var(--nx-space-2); }
    .nx-auth-brand img { width: 4rem; height: 4rem; }
    .nx-auth-heading { margin-bottom: var(--nx-space-2); }
    .nx-auth-heading .nx-public-eyebrow { margin-bottom: .375rem; }
    .nx-auth-form { gap: var(--nx-space-2); }
    .nx-auth-form .nx-field { gap: var(--nx-space-1); }
    .nx-auth-page .nx-public-footer { padding-block: var(--nx-space-1); }
}

/* Sticky public navigation preserves the approved composition and header height. */
.nx-public-header[data-nx-sticky], .nx-auth-header[data-nx-sticky] { position: sticky; top: 0; z-index: var(--nx-z-nav); background: rgb(11 16 35 / 78%); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); transition: background var(--nx-duration-normal) var(--nx-ease), box-shadow var(--nx-duration-normal) var(--nx-ease); }
.nx-public-header.is-scrolled, .nx-auth-header.is-scrolled { background: rgb(11 16 35 / 93%); box-shadow: 0 8px 24px rgb(0 0 0 / 18%); }
.nx-public-steps { scroll-margin-top: 7rem; }
@media (max-width: 48rem) { .nx-public-steps { scroll-margin-top: 5.5rem; } }
