/* Authentication styles stay within the login page's body class. */
.nm-auth-page {
    --auth-green: var(--primary-base, #246a0e);
    --auth-dark: var(--primary-dark, #1b4f0a);
    --auth-text: #243320;
    --auth-muted: #61705a;
    --auth-surface: #f8faf6;
    --auth-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    background: var(--auth-surface);
    color: var(--auth-text);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}
.nm-auth-page *, .nm-auth-page *::before, .nm-auth-page *::after { box-sizing: border-box; }
.nm-auth-page [hidden] { display: none !important; }
.nm-auth-page > main { display: flex; flex: 1; flex-direction: column; }
.nm-auth-page .nm-auth-layout { display: grid; grid-template-columns: var(--auth-columns); flex: 1; }
.nm-auth-page .nm-auth-brand-panel {
    display: flex;
    flex-direction: column;
    padding: 44px clamp(32px, 4vw, 72px) 24px;
    background: var(--auth-dark);
    color: #fff;
}
.nm-auth-page .nm-auth-brand {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 12px;
    color: inherit;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1;
    text-decoration: none;
}
.nm-auth-page .nm-auth-brand img { width: 46px; height: 46px; flex: none; }
.nm-auth-page .nm-auth-brand-product { display: block; margin-top: 7px; font-size: 10px; font-weight: 500; letter-spacing: 2.5px; }
.nm-auth-page .nm-auth-story { width: 100%; max-width: 520px; margin: auto; padding: 36px 0 0; }
.nm-auth-page .nm-auth-eyebrow { margin: 0 0 16px; color: var(--auth-green); font-size: 11px; font-weight: 600; letter-spacing: 1.7px; line-height: 1.5; }
.nm-auth-page .nm-auth-story .nm-auth-eyebrow { color: #c7deb9; }
.nm-auth-page .nm-auth-story h2 { margin: 0; color: #fff; font-size: clamp(38px, 3.5vw, 56px); font-weight: 600; letter-spacing: -2px; line-height: 1.12; }
.nm-auth-page .nm-auth-story-copy { margin: 22px 0 0; color: #dae7d1; font-size: 16px; line-height: 1.75; }
.nm-auth-page .nm-auth-orchard { display: block; width: 100%; height: auto; margin: 28px 0 0; border: 1px solid #ffffff30; border-radius: 16px; }
.nm-auth-page .nm-auth-caption { margin: 16px 0 0; color: #d0e0c6; font-size: 12px; line-height: 1.7; }
.nm-auth-page .nm-auth-form-panel { display: flex; align-items: center; justify-content: center; padding: 64px 40px; }
.nm-auth-page .nm-auth-form-shell { width: 100%; max-width: 420px; }
.nm-auth-page .nm-auth-heading { margin: 0; color: var(--auth-text); font-size: 32px; font-weight: 600; letter-spacing: -1.2px; line-height: 1.22; }
.nm-auth-page .nm-auth-heading:focus { outline: none; }
.nm-auth-page .nm-auth-intro { margin: 14px 0 0; color: var(--auth-muted); font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
.nm-auth-page .nm-auth-form { margin-top: 32px; }
.nm-auth-page .nm-auth-field { margin-bottom: 22px; }
.nm-auth-page .nm-auth-field label { display: block; margin: 0 0 8px; color: var(--auth-text); font-size: 13px; font-weight: 600; line-height: 1.5; }
.nm-auth-page .nm-auth-field input {
    display: block;
    width: 100%;
    height: 50px;
    padding: 12px 14px;
    border: 1px solid #87957e;
    border-radius: 8px;
    background: #fff;
    color: var(--auth-text);
    font: inherit;
    font-size: 16px;
    line-height: 1.5;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.nm-auth-page .nm-auth-field input::placeholder { color: #66745f; opacity: 1; }
.nm-auth-page .nm-auth-field input:hover { border-color: #788a6d; }
.nm-auth-page .nm-auth-field input:focus { border-color: var(--auth-green); outline: 2px solid var(--auth-green); outline-offset: 2px; }
.nm-auth-page .nm-auth-field input[readonly] { background: #f1f5ee; }
.nm-auth-page .nm-auth-password { position: relative; }
.nm-auth-page .nm-auth-password input { padding-right: 56px; }
.nm-auth-page .nm-auth-password-toggle {
    position: absolute;
    top: 3px;
    right: 3px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #61705a;
    cursor: pointer;
}
.nm-auth-page .nm-auth-password-toggle:hover { background: #edf3e8; color: var(--auth-green); }
.nm-auth-page .nm-auth-password-toggle svg { width: 21px; height: 21px; }
.nm-auth-page .nm-auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 50px;
    margin-top: 28px;
    padding: 12px 18px;
    border: 1px solid var(--auth-green);
    border-radius: 8px;
    background: var(--auth-green);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
    cursor: pointer;
    transition: background .15s ease;
}
.nm-auth-page .nm-auth-submit:hover { background: var(--auth-dark); border-color: var(--auth-dark); }
.nm-auth-page .nm-auth-submit svg { width: 20px; height: 20px; flex: none; }
.nm-auth-page .nm-auth-submit:disabled { background: #617a53; border-color: #617a53; cursor: wait; }
.nm-auth-page .nm-auth-form[aria-busy="true"] .nm-auth-submit svg { display: none; }
.nm-auth-page .nm-auth-switch-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 5px; margin: 28px 0 0; padding-top: 20px; border-top: 1px solid #dde5d6; color: var(--auth-muted); font-size: 13px; line-height: 1.6; }
.nm-auth-page .nm-auth-link { min-height: 44px; padding: 8px 3px; border: 0; border-radius: 3px; background: transparent; color: var(--auth-green); font: inherit; font-weight: 600; cursor: pointer; }
.nm-auth-page .nm-auth-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.nm-auth-page .nm-auth-link:disabled, .nm-auth-page .nm-auth-password-toggle:disabled { opacity: .65; cursor: wait; }
.nm-auth-page .nm-auth-note { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 0; padding: 14px; border: 1px solid #d6e2cc; border-radius: 8px; background: #edf3e8; color: #4c6041; font-size: 12px; line-height: 1.75; }
.nm-auth-page .nm-auth-note svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.nm-auth-page .nm-auth-error { margin: 0 0 24px; padding: 14px; border: 1px solid #d7a8a0; border-radius: 8px; background: #fff3f0; color: #8a3024; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.nm-auth-page .nm-auth-error:focus { outline: 2px solid #8a3024; outline-offset: 3px; }
.nm-auth-page .nm-auth-success-mark { width: 56px; height: 56px; margin-bottom: 24px; }
.nm-auth-page .nm-auth-success-copy { margin: 24px 0 0; padding: 18px; border: 1px solid #d6e2cc; border-radius: 8px; background: #edf3e8; color: #4c6041; font-size: 14px; line-height: 1.75; }
.nm-auth-page .nm-auth-footer { display: grid; grid-template-columns: var(--auth-columns); font-size: 12px; line-height: 1.7; }
.nm-auth-page .nm-auth-footer-brand { padding: 20px clamp(32px, 4vw, 72px); background: var(--auth-dark); color: #d0e0c6; }
.nm-auth-page .nm-auth-footer-help { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 8px; padding: 20px 24px; color: var(--auth-muted); }
.nm-auth-page .nm-auth-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--auth-green); text-decoration: underline; text-underline-offset: 3px; }
.nm-auth-page a:focus-visible, .nm-auth-page button:focus-visible { outline: 2px solid var(--auth-green); outline-offset: 4px; }
.nm-auth-page .nm-auth-brand:focus-visible { outline-color: #c7deb9; }
.nm-auth-page .nm-auth-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 899px) {
    .nm-auth-page { --auth-columns: minmax(0, 1fr); }
    .nm-auth-page .nm-auth-layout { display: flex; flex-direction: column; }
    .nm-auth-page .nm-auth-brand-panel { padding: 32px 24px 0; background: transparent; color: var(--auth-dark); }
    .nm-auth-page .nm-auth-brand { align-self: center; font-size: 26px; }
    .nm-auth-page .nm-auth-story { display: none; }
    .nm-auth-page .nm-auth-form-panel { flex: 1; padding: 48px 24px 28px; }
    .nm-auth-page .nm-auth-form-shell > .nm-auth-view > .nm-auth-eyebrow { display: none; }
    .nm-auth-page .nm-auth-footer-brand { order: 2; padding: 0 24px 24px; background: transparent; color: var(--auth-muted); text-align: center; }
    .nm-auth-page .nm-auth-footer-help { padding: 8px 24px; }
    .nm-auth-page .nm-auth-brand:focus-visible { outline-color: var(--auth-green); }
}
@media (max-width: 380px) {
    .nm-auth-page .nm-auth-heading { font-size: 28px; letter-spacing: -.8px; }
    .nm-auth-page .nm-auth-form-panel { padding-top: 36px; }
}
@media (prefers-reduced-motion: reduce) {
    .nm-auth-page .nm-auth-field input, .nm-auth-page .nm-auth-submit { transition: none; }
}
