/* SSO-inspired auth shell — IIT (ISM) navy glass style */
:root {
    --sso-navy: #001a33;
    --sso-navy-2: #0b3a7a;
    --sso-ink: #f8fafc;
    --sso-muted: #94a3b8;
    --sso-glass: rgba(15, 23, 42, 0.62);
    --sso-glass-border: rgba(255, 255, 255, 0.14);
    --sso-accent: #3b82f6;
    --sso-ok: #22c55e;
    --sso-gold: #c4a035;
}

* {
    box-sizing: border-box;
}

body.nfr-sso {
    margin: 0;
    min-height: 100vh;
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    color: var(--sso-ink);
    background: #020617;
    position: relative;
    overflow-x: hidden;
}

.nfr-sso-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: #020617;
    overflow: hidden;
}
.nfr-sso-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: var(--sso-campus-url);
    background-repeat: no-repeat;
    background-position: center 36%;
    background-size: cover;
    opacity: 0;
}
.nfr-sso-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 1;
}

/*
 * Visible campus photo style (login / dark auth):
 * photo as full base → light navy scrim → frosted glass UI on top
 */
body.nfr-sso:not(.nfr-sso-light) .nfr-sso-bg::before {
    opacity: 1;
    filter: brightness(1.1) contrast(1.07);
    transform: scale(1.02);
    background-position: center 44%;
    background-size: cover;
}
body.nfr-sso:not(.nfr-sso-light) .nfr-sso-bg::after {
    background:
        /* light navy tint at the very bottom only; signage above stays clear */
        linear-gradient(
            to top,
            rgba(0, 26, 51, 0.55) 0%,
            rgba(0, 26, 51, 0.18) 8%,
            rgba(0, 26, 51, 0) 15%
        ),
        linear-gradient(
            115deg,
            rgba(0, 22, 48, 0.52) 0%,
            rgba(2, 10, 28, 0.38) 45%,
            rgba(8, 42, 90, 0.48) 100%
        ),
        radial-gradient(
            ellipse at 15% 10%,
            rgba(59, 130, 246, 0.18),
            transparent 42%
        ),
        radial-gradient(
            ellipse at 90% 90%,
            rgba(196, 160, 53, 0.12),
            transparent 40%
        ),
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size:
        auto,
        auto,
        auto,
        auto,
        48px 48px,
        48px 48px;
}

/* Stronger frosted panels so text stays clear over the photo */
body.nfr-sso:not(.nfr-sso-light) .nfr-sso-card {
    background: rgba(8, 18, 38, 0.78);
    border-color: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(22px) saturate(1.15);
    -webkit-backdrop-filter: blur(22px) saturate(1.15);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}
body.nfr-sso:not(.nfr-sso-light) .nfr-sso-feature-grid article {
    background: rgba(8, 18, 38, 0.58);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
body.nfr-sso:not(.nfr-sso-light) .nfr-sso-hero h1 {
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}
body.nfr-sso:not(.nfr-sso-light) .nfr-sso-lead {
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
    color: #e2e8f0;
}
body.nfr-sso:not(.nfr-sso-light) .nfr-sso-header-wrap {
    background: rgba(2, 8, 22, 0.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
body.nfr-sso:not(.nfr-sso-light) .nfr-sso-flash {
    background: rgba(8, 18, 38, 0.72);
    backdrop-filter: blur(12px);
}

/* Soft campus wash on light Register page */
body.nfr-sso.nfr-sso-light .nfr-sso-bg::before {
    opacity: 0.12;
    filter: grayscale(30%) brightness(1.08) contrast(0.98);
    background-position: center 28%;
}

/* Frosted band across the bottom strip of the campus photo (kerb area).
   Sits above the background layer but below page content, so text stays sharp. */
body.nfr-sso:not(.nfr-sso-light)::after {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 13vh;
    min-height: 80px;
    z-index: 0;
    pointer-events: none;
    backdrop-filter: blur(14px) saturate(1.05);
    -webkit-backdrop-filter: blur(14px) saturate(1.05);
    background: linear-gradient(
        to top,
        rgba(0, 26, 51, 0.5),
        rgba(0, 26, 51, 0.08)
    );
    -webkit-mask-image: linear-gradient(to top, #000 60%, transparent 100%);
    mask-image: linear-gradient(to top, #000 60%, transparent 100%);
}

.nfr-sso-header-wrap,
.nfr-sso-main,
.nfr-sso-footer {
    position: relative;
    z-index: 1;
}

.nfr-sso-header-wrap {
    width: 100%;
}

.nfr-sso-header {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.1rem 0 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nfr-sso-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    text-decoration: none;
    min-width: 0;
}
.nfr-sso-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    padding: 4px;
    flex-shrink: 0;
}
.nfr-sso-logo-fallback {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid var(--sso-glass-border);
    font-weight: 800;
}
.nfr-sso-brand strong {
    display: block;
    font-size: 1.05rem;
    line-height: 1.2;
}
.nfr-sso-brand small {
    display: block;
    color: var(--sso-muted);
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 0.1rem;
}

.nfr-sso-nav {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.nfr-sso-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid var(--sso-glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}
.nfr-sso-nav a:hover,
.nfr-sso-nav a.is-active {
    background: rgba(59, 130, 246, 0.22);
    border-color: rgba(147, 197, 253, 0.45);
}
.nfr-sso-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #bbf7d0;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(34, 197, 94, 0.35);
}
.nfr-sso-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sso-ok);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}

.nfr-sso-main {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.5rem 0 2.5rem;
    min-height: calc(100vh - 140px);
}

.nfr-sso-flash {
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
}
.nfr-sso-flash-ok {
    background: rgba(34, 197, 94, 0.18);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #bbf7d0;
}
.nfr-sso-flash-err {
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(248, 113, 113, 0.45);
    color: #fecaca;
}
.nfr-sso-flash-warn {
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #fde68a;
}

.nfr-sso-split {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    align-items: center;
}

.nfr-sso-kicker {
    display: inline-block;
    margin: 0 0 0.75rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fde68a;
    background: rgba(196, 160, 53, 0.18);
    border: 1px solid rgba(196, 160, 53, 0.35);
}
.nfr-sso-hero h1 {
    margin: 0 0 0.85rem;
    font-size: clamp(1.8rem, 3.5vw, 2.75rem);
    line-height: 1.15;
    font-weight: 800;
}
.nfr-sso-lead {
    margin: 0 0 1.5rem;
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.55;
    max-width: 34rem;
}
.nfr-sso-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}
.nfr-sso-feature-grid article {
    padding: 0.95rem 1rem;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--sso-glass-border);
    backdrop-filter: blur(10px);
}
.nfr-sso-feature-grid i {
    display: block;
    font-size: 1.25rem;
    color: #93c5fd;
    margin-bottom: 0.4rem;
}
.nfr-sso-feature-grid strong {
    display: block;
    margin-bottom: 0.2rem;
}
.nfr-sso-feature-grid span {
    color: var(--sso-muted);
    font-size: 0.86rem;
    font-weight: 600;
}

.nfr-sso-card {
    background: var(--sso-glass);
    border: 1px solid var(--sso-glass-border);
    border-radius: 22px;
    padding: 1.6rem 1.5rem 1.4rem;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.nfr-sso-card-wide {
    width: min(820px, 100%);
    margin: 0 auto;
}
.nfr-sso-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin: 0 auto 0.85rem;
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.35),
        rgba(11, 58, 122, 0.55)
    );
    border: 1px solid rgba(147, 197, 253, 0.35);
    font-size: 1.45rem;
    color: #dbeafe;
}
.nfr-sso-card h2 {
    margin: 0;
    text-align: center;
    font-size: 1.45rem;
}
.nfr-sso-card-sub {
    margin: 0.35rem 0 1rem;
    text-align: center;
    color: var(--sso-muted);
    font-weight: 600;
}
.nfr-sso-info-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.8rem;
    margin-bottom: 1.1rem;
    border-radius: 10px;
    background: rgba(2, 6, 23, 0.45);
    border: 1px solid rgba(34, 197, 94, 0.28);
    color: #bbf7d0;
    font-size: 0.86rem;
    font-weight: 700;
}
.nfr-sso-form {
    display: grid;
    gap: 0.55rem;
}
.nfr-sso-label {
    font-size: 0.86rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-top: 0.35rem;
}
.nfr-sso-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0 0.85rem;
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.28);
    min-height: 48px;
}
.nfr-sso-input-wrap:focus-within {
    border-color: rgba(96, 165, 250, 0.7);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.nfr-sso-input-wrap > i {
    color: #93c5fd;
    font-size: 1.1rem;
}
.nfr-sso-input-wrap input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    padding: 0.8rem 0;
}
.nfr-sso-input-wrap input::placeholder {
    color: #64748b;
}
.nfr-sso-eye {
    border: 0;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.15rem;
    padding: 0.2rem;
}
.nfr-sso-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.35rem 0 0.35rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #cbd5e1;
}
.nfr-sso-check input {
    accent-color: var(--sso-accent);
}
.nfr-sso-captcha {
    display: grid;
    grid-template-columns: minmax(120px, 0.9fr) 1.1fr;
    gap: 0.65rem;
    align-items: stretch;
}
.nfr-sso-captcha-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 48px;
    padding: 0.45rem 0.7rem;
    border-radius: 12px;
    border: 1px dashed rgba(244, 114, 182, 0.55);
    background: repeating-linear-gradient(
        -12deg,
        rgba(236, 72, 153, 0.12),
        rgba(236, 72, 153, 0.12) 8px,
        rgba(15, 23, 42, 0.35) 8px,
        rgba(15, 23, 42, 0.35) 16px
    );
    color: #f9a8d4;
    font-family: "Segoe UI", Consolas, monospace;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    cursor: pointer;
    user-select: none;
}
.nfr-sso-captcha-code:hover {
    border-color: rgba(244, 114, 182, 0.85);
    color: #fce7f3;
}
.nfr-sso-captcha-code i {
    font-size: 1rem;
    letter-spacing: 0;
    opacity: 0.85;
}
.nfr-sso-captcha-input {
    margin: 0;
}
.nfr-sso-captcha-timer {
    margin: 0.15rem 0 0.55rem;
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 600;
}
.nfr-sso-captcha-timer strong {
    color: #fde68a;
}
@media (max-width: 560px) {
    .nfr-sso-captcha {
        grid-template-columns: 1fr;
    }
}
.nfr-sso-submit {
    border: 0;
    border-radius: 12px;
    min-height: 48px;
    font: inherit;
    font-weight: 800;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #2563eb, #0b3a7a);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}
.nfr-sso-submit:hover {
    filter: brightness(1.06);
}
.nfr-sso-links {
    margin-top: 1rem;
    display: grid;
    gap: 0.4rem;
    text-align: center;
}
.nfr-sso-links a {
    color: #93c5fd;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
}
.nfr-sso-links a:hover {
    text-decoration: underline;
}

.nfr-sso-footer {
    text-align: center;
    color: #64748b;
    font-size: 0.82rem;
    padding: 0 1rem 1.5rem;
}
body.nfr-sso:not(.nfr-sso-light) .nfr-sso-footer {
    color: rgba(226, 232, 240, 0.72);
    padding-top: 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 1.5rem;
}

/* Forms reused inside glass (register) */
.nfr-sso-card .nfr-form {
    margin-top: 0.5rem;
}
.nfr-sso-card .nfr-label {
    color: #e2e8f0;
}
.nfr-sso-card .nfr-input,
.nfr-sso-card .nfr-select,
.nfr-sso-card select,
.nfr-sso-card input[type="text"],
.nfr-sso-card input[type="email"],
.nfr-sso-card input[type="password"],
.nfr-sso-card input[type="date"],
.nfr-sso-card input[type="number"],
.nfr-sso-card input[type="file"],
.nfr-sso-card textarea {
    background: rgba(2, 6, 23, 0.55) !important;
    border-color: rgba(148, 163, 184, 0.28) !important;
    color: #fff !important;
}
.nfr-sso-card .nfr-form-section {
    background: rgba(2, 6, 23, 0.28);
    border-color: rgba(148, 163, 184, 0.22);
}
.nfr-sso-card .nfr-form-section legend {
    color: #93c5fd;
}
.nfr-sso-card .nfr-muted,
.nfr-sso-card .nfr-field-hint {
    color: #94a3b8;
}
.nfr-password-wrap {
    position: relative;
}
.nfr-password-wrap .nfr-input {
    padding-right: 2.75rem;
}
.nfr-password-toggle {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.1rem;
    height: 2.1rem;
    border: 0;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.4rem;
    padding: 0;
}
.nfr-password-toggle:hover,
.nfr-password-toggle:focus-visible {
    color: #e2e8f0;
    outline: none;
    background: rgba(148, 163, 184, 0.12);
}
.nfr-password-toggle i {
    font-size: 1.15rem;
    line-height: 1;
}
body.nfr-sso.nfr-sso-light .nfr-password-toggle {
    color: #64748b;
}
body.nfr-sso.nfr-sso-light .nfr-password-toggle:hover,
body.nfr-sso.nfr-sso-light .nfr-password-toggle:focus-visible {
    color: #0f172a;
    background: rgba(15, 23, 42, 0.06);
}
.nfr-password-rules {
    list-style: none;
    margin: 0.45rem 0 0;
    padding: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #94a3b8;
}
.nfr-password-rules li {
    position: relative;
    padding-left: 1.15rem;
    margin: 0.15rem 0;
}
.nfr-password-rules li::before {
    content: "○";
    position: absolute;
    left: 0;
    top: 0;
    color: #64748b;
}
.nfr-password-rules li.is-ok {
    color: #86efac;
}
.nfr-password-rules li.is-ok::before {
    content: "✓";
    color: #22c55e;
}
.nfr-password-rules li.is-bad {
    color: #fca5a5;
}
.nfr-password-rules li.is-bad::before {
    content: "✗";
    color: #ef4444;
}
.nfr-password-match.is-ok {
    color: #86efac !important;
}
.nfr-password-match.is-bad {
    color: #fca5a5 !important;
}
body.nfr-sso.nfr-sso-light .nfr-password-rules {
    color: #64748b;
}
body.nfr-sso.nfr-sso-light .nfr-password-rules li.is-ok {
    color: #15803d;
}
body.nfr-sso.nfr-sso-light .nfr-password-rules li.is-bad,
body.nfr-sso.nfr-sso-light .nfr-password-match.is-bad {
    color: #b91c1c;
}
body.nfr-sso.nfr-sso-light .nfr-password-match.is-ok {
    color: #15803d;
}
.nfr-sso-card .nfr-btn {
    background: linear-gradient(135deg, #2563eb, #0b3a7a);
}
.nfr-sso-card .nfr-alert-error {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(248, 113, 113, 0.45);
    color: #fecaca;
}

@media (max-width: 960px) {
    .nfr-sso-split {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .nfr-sso-hero {
        order: 2;
    }
    .nfr-sso-card {
        order: 1;
    }
    .nfr-sso-header {
        flex-direction: column;
        align-items: stretch;
    }
    .nfr-sso-nav {
        justify-content: flex-start;
    }
    .nfr-sso-feature-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 560px) {
    .nfr-sso-nav a span,
    .nfr-sso-status {
        font-size: 0.78rem;
    }
    .nfr-sso-nav a {
        padding: 0.4rem 0.7rem;
    }
    .nfr-sso-brand small {
        display: none;
    }
}

/* —— Light content + dark nav (Register) —— */
body.nfr-sso.nfr-sso-light {
    color: #0f172a;
    background: #f1f5f9;
}
body.nfr-sso.nfr-sso-light .nfr-sso-bg {
    background:
        radial-gradient(
            circle at top left,
            rgba(11, 58, 122, 0.08),
            transparent 42%
        ),
        linear-gradient(180deg, #f8fafc 0%, #e8eef6 100%);
}
body.nfr-sso.nfr-sso-light .nfr-sso-bg::after {
    opacity: 0.2;
    background-image:
        linear-gradient(rgba(11, 58, 122, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 58, 122, 0.04) 1px, transparent 1px);
}

/* Dark full-width navbar (same SSO pill style) */
body.nfr-sso.nfr-sso-light .nfr-sso-header-wrap {
    background: linear-gradient(135deg, #00152e 0%, #002147 55%, #0b3a7a 100%);
    border-bottom: 2px solid #c4a035;
    box-shadow: 0 8px 24px rgba(0, 21, 46, 0.25);
}
body.nfr-sso.nfr-sso-light .nfr-sso-header {
    padding: 0.85rem 0;
}
body.nfr-sso.nfr-sso-light .nfr-sso-brand {
    color: #fff;
}
body.nfr-sso.nfr-sso-light .nfr-sso-brand small {
    color: rgba(255, 255, 255, 0.78);
}
body.nfr-sso.nfr-sso-light .nfr-sso-logo-fallback {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}
body.nfr-sso.nfr-sso-light .nfr-sso-nav a {
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.35);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: none;
}
body.nfr-sso.nfr-sso-light .nfr-sso-nav a:hover {
    background: rgba(59, 130, 246, 0.28);
    border-color: rgba(147, 197, 253, 0.5);
    color: #fff;
}
body.nfr-sso.nfr-sso-light .nfr-sso-nav a.is-active {
    background: #93c5fd;
    border-color: #93c5fd;
    color: #002147;
}
body.nfr-sso.nfr-sso-light .nfr-sso-status {
    color: #bbf7d0;
    background: rgba(15, 23, 42, 0.35);
    border-color: rgba(34, 197, 94, 0.4);
}

/* Full-width register form area */
body.nfr-sso.nfr-sso-light .nfr-sso-main {
    width: 100%;
    max-width: none;
    padding: 1.25rem 1rem 2.5rem;
    box-sizing: border-box;
}
body.nfr-sso.nfr-sso-light .nfr-sso-card-wide {
    width: 100%;
    max-width: none;
    margin: 0;
}
body.nfr-sso.nfr-sso-light .nfr-sso-footer {
    color: #64748b;
}

body.nfr-sso.nfr-sso-light .nfr-sso-card {
    background: #ffffff;
    border: 1px solid #dbe3ef;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    backdrop-filter: none;
    border-radius: 18px;
    padding: 1.5rem 1.75rem 1.5rem;
}
body.nfr-sso.nfr-sso-light .nfr-sso-card h2 {
    color: #002147;
}
body.nfr-sso.nfr-sso-light .nfr-sso-card-sub {
    color: #64748b;
}
body.nfr-sso.nfr-sso-light .nfr-sso-card-icon {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-color: #93c5fd;
    color: #0b3a7a;
}
body.nfr-sso.nfr-sso-light .nfr-sso-info-banner {
    background: #f0fdf4;
    border-color: #86efac;
    color: #166534;
}

body.nfr-sso.nfr-sso-light .nfr-sso-card .nfr-label {
    color: #0f172a;
}
body.nfr-sso.nfr-sso-light .nfr-sso-card .nfr-input,
body.nfr-sso.nfr-sso-light .nfr-sso-card .nfr-select,
body.nfr-sso.nfr-sso-light .nfr-sso-card select,
body.nfr-sso.nfr-sso-light .nfr-sso-card input[type="text"],
body.nfr-sso.nfr-sso-light .nfr-sso-card input[type="email"],
body.nfr-sso.nfr-sso-light .nfr-sso-card input[type="password"],
body.nfr-sso.nfr-sso-light .nfr-sso-card input[type="date"],
body.nfr-sso.nfr-sso-light .nfr-sso-card input[type="number"],
body.nfr-sso.nfr-sso-light .nfr-sso-card input[type="file"],
body.nfr-sso.nfr-sso-light .nfr-sso-card textarea {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}
body.nfr-sso.nfr-sso-light .nfr-sso-card .nfr-input:focus,
body.nfr-sso.nfr-sso-light .nfr-sso-card select:focus {
    outline: none;
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}
body.nfr-sso.nfr-sso-light .nfr-sso-card .nfr-form-section {
    background: #f8fafc;
    border-color: #e2e8f0;
}
body.nfr-sso.nfr-sso-light .nfr-sso-card .nfr-form-section legend {
    color: #2563eb;
    font-weight: 800;
    background: #fff;
    padding: 0 0.4rem;
}
body.nfr-sso.nfr-sso-light .nfr-sso-card .nfr-muted,
body.nfr-sso.nfr-sso-light .nfr-sso-card .nfr-field-hint {
    color: #64748b;
}
body.nfr-sso.nfr-sso-light .nfr-sso-card .nfr-btn {
    background: linear-gradient(135deg, #2563eb, #0b3a7a);
    color: #fff;
}
body.nfr-sso.nfr-sso-light .nfr-sso-card .nfr-alert-error {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}
body.nfr-sso.nfr-sso-light .nfr-sso-links a {
    color: #0b3a7a;
}

body.nfr-sso.nfr-sso-light .nfr-sso-flash-err {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}
body.nfr-sso.nfr-sso-light .nfr-sso-flash-ok {
    background: #dcfce7;
    border-color: #86efac;
    color: #166534;
}

/* Register: aligned grids + readable field size */
body.nfr-sso.nfr-sso-light .nfr-register-form {
    gap: 1.1rem;
}
body.nfr-sso.nfr-sso-light .nfr-sso-card .nfr-form-section {
    padding: 1rem 1.15rem 1.15rem;
}
body.nfr-sso.nfr-sso-light .nfr-register-grid {
    display: grid;
    gap: 1rem 1.1rem;
}
body.nfr-sso.nfr-sso-light .nfr-register-grid.nfr-grid-3,
body.nfr-sso.nfr-sso-light .nfr-grid-3.nfr-register-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
body.nfr-sso.nfr-sso-light .nfr-register-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
body.nfr-sso.nfr-sso-light .nfr-register-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
body.nfr-sso.nfr-sso-light .nfr-sso-card .nfr-label {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    display: block;
}
body.nfr-sso.nfr-sso-light .nfr-sso-card .nfr-input,
body.nfr-sso.nfr-sso-light .nfr-sso-card .nfr-select,
body.nfr-sso.nfr-sso-light .nfr-sso-card select,
body.nfr-sso.nfr-sso-light .nfr-sso-card input[type="text"],
body.nfr-sso.nfr-sso-light .nfr-sso-card input[type="email"],
body.nfr-sso.nfr-sso-light .nfr-sso-card input[type="password"],
body.nfr-sso.nfr-sso-light .nfr-sso-card input[type="date"],
body.nfr-sso.nfr-sso-light .nfr-sso-card input[type="number"],
body.nfr-sso.nfr-sso-light .nfr-sso-card input[type="tel"],
body.nfr-sso.nfr-sso-light .nfr-sso-card input[type="file"] {
    min-height: 46px;
    padding: 0.6rem 0.85rem !important;
    font-size: 0.98rem !important;
    border-radius: 10px !important;
}
body.nfr-sso.nfr-sso-light .nfr-sso-card .nfr-field-hint {
    font-size: 0.82rem;
    margin-top: 0.3rem;
}
body.nfr-sso.nfr-sso-light .nfr-sso-card .nfr-field-error {
    color: #b91c1c;
    font-size: 0.82rem;
    margin-top: 0.25rem;
    font-weight: 600;
}
body.nfr-sso.nfr-sso-light .nfr-sso-card .nfr-upload-preview {
    margin-bottom: 0.65rem;
    position: relative;
}
body.nfr-sso.nfr-sso-light .nfr-preview-clear {
    display: inline-block;
    margin-top: 0.55rem;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #0f172a;
    border-radius: 8px;
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}
body.nfr-sso.nfr-sso-light .nfr-preview-clear:hover {
    background: #f1f5f9;
}
body.nfr-sso.nfr-sso-light .nfr-sso-card-icon {
    width: 52px;
    height: 52px;
    font-size: 1.35rem;
    margin-bottom: 0.65rem;
}
body.nfr-sso.nfr-sso-light .nfr-sso-card h2 {
    font-size: 1.55rem;
}
body.nfr-sso.nfr-sso-light .nfr-sso-card-sub {
    font-size: 0.98rem;
    margin-bottom: 1.15rem;
}
body.nfr-sso.nfr-sso-light .nfr-sso-card .nfr-btn {
    min-height: 48px;
    padding: 0.75rem 1.1rem;
    font-size: 1rem;
}

@media (max-width: 1100px) {
    body.nfr-sso.nfr-sso-light .nfr-register-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 960px) {
    body.nfr-sso.nfr-sso-light .nfr-grid-3.nfr-register-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 560px) {
    body.nfr-sso.nfr-sso-light .nfr-register-grid-4,
    body.nfr-sso.nfr-sso-light .nfr-register-grid-2,
    body.nfr-sso.nfr-sso-light .nfr-grid-3.nfr-register-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {
    body.nfr-sso.nfr-sso-light .nfr-sso-card {
        padding: 1.15rem 1rem 1.25rem;
        border-radius: 14px;
    }
    body.nfr-sso.nfr-sso-light .nfr-sso-main {
        width: 100%;
        padding: 1rem 0.65rem 2rem;
    }
}

.nfr-confirm-dialog {
    border: 0;
    padding: 0;
    border-radius: 16px;
    width: min(640px, calc(100vw - 1.5rem));
    max-height: min(86vh, 760px);
    background: #fff;
    color: #0f172a;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}
.nfr-confirm-dialog::backdrop {
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
}
.nfr-confirm-dialog-inner {
    display: flex;
    flex-direction: column;
    max-height: min(86vh, 760px);
}
.nfr-confirm-dialog-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.1rem 1.2rem 0.85rem;
    border-bottom: 1px solid #e2e8f0;
}
.nfr-confirm-dialog-head h3 {
    margin: 0 0 0.25rem;
    font-size: 1.15rem;
    color: #0b3a7a;
}
.nfr-confirm-dialog-head p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
}
.nfr-confirm-dialog-head .nfr-confirm-name-warning {
    margin-top: 0.45rem;
    color: #b91c1c;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.35;
}
.nfr-confirm-close {
    border: 0;
    background: #f1f5f9;
    color: #334155;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    cursor: pointer;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.nfr-confirm-close:hover { background: #e2e8f0; }
.nfr-confirm-dialog-body {
    padding: 1rem 1.2rem;
    overflow: auto;
    display: grid;
    gap: 1rem;
}
.nfr-confirm-dialog-body section h4 {
    margin: 0 0 0.55rem;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}
.nfr-confirm-grid {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 0.85rem;
}
.nfr-confirm-row {
    display: grid;
    gap: 0.15rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}
.nfr-confirm-row dt {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}
.nfr-confirm-row dd {
    margin: 0;
    font-weight: 700;
    color: #0f172a;
    word-break: break-word;
}
.nfr-confirm-note {
    margin: 0;
    color: #64748b;
    font-size: 0.86rem;
    font-weight: 600;
}
.nfr-confirm-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    flex-wrap: wrap;
    padding: 0.9rem 1.2rem 1.15rem;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

@media (max-width: 560px) {
    .nfr-confirm-grid { grid-template-columns: 1fr; }
    .nfr-confirm-dialog-actions { justify-content: stretch; }
    .nfr-confirm-dialog-actions .nfr-btn,
    .nfr-confirm-dialog-actions .nfr-btn-ghost { width: 100%; }
}

