/* =========================================================
   NVR Login Theme
   Centralized style for views/site/login.php
   Supports html.dark / body.dark-mode and nvr-theme-mode storage.
   ========================================================= */

:root {
    --nvr-login-primary: #2563eb;
    --nvr-login-primary-dark: #1d4ed8;
    --nvr-login-accent: #38bdf8;
    --nvr-login-ink: #0f172a;
    --nvr-login-heading: #0b1220;
    --nvr-login-muted: #64748b;
    --nvr-login-label: #334155;
    --nvr-login-placeholder: #94a3b8;
    --nvr-login-border: rgba(148, 163, 184, .26);
    --nvr-login-card-border: rgba(255, 255, 255, .76);
    --nvr-login-glass-border: rgba(255, 255, 255, .72);
    --nvr-login-body-bg: #eaf4ff;
    --nvr-login-page-bg:
        radial-gradient(circle at top left, rgba(56, 189, 248, .22), transparent 34%),
        radial-gradient(circle at bottom right, rgba(37, 99, 235, .20), transparent 32%),
        linear-gradient(135deg, rgba(239, 249, 255, .96), rgba(219, 234, 254, .92));
    --nvr-login-grid-color: rgba(37, 99, 235, .075);
    --nvr-login-surface: rgba(255, 255, 255, .86);
    --nvr-login-surface-solid: #ffffff;
    --nvr-login-feature-surface: rgba(255, 255, 255, .56);
    --nvr-login-feature-surface-hover: rgba(255, 255, 255, .78);
    --nvr-login-input-bg: rgba(255, 255, 255, .78);
    --nvr-login-input-focus-bg: #ffffff;
    --nvr-login-card-shadow: 0 30px 90px rgba(15, 23, 42, .20);
    --nvr-login-soft-shadow: 0 18px 48px rgba(15, 23, 42, .10);
    --nvr-login-logo-shadow: 0 24px 70px rgba(15, 23, 42, .12);
    --nvr-login-bg-filter: saturate(1.06) brightness(1.08);
    --nvr-login-bg-opacity: 1;
}

html.dark,
body.dark-mode {
    --nvr-login-primary: #38bdf8;
    --nvr-login-primary-dark: #7dd3fc;
    --nvr-login-accent: #60a5fa;
    --nvr-login-ink: #e5e7eb;
    --nvr-login-heading: #f8fafc;
    --nvr-login-muted: #cbd5e1;
    --nvr-login-label: #dbeafe;
    --nvr-login-placeholder: #64748b;
    --nvr-login-border: rgba(148, 163, 184, .28);
    --nvr-login-card-border: rgba(148, 163, 184, .28);
    --nvr-login-glass-border: rgba(148, 163, 184, .24);
    --nvr-login-body-bg: #020617;
    --nvr-login-page-bg:
        radial-gradient(circle at top left, rgba(14, 165, 233, .18), transparent 34%),
        radial-gradient(circle at bottom right, rgba(59, 130, 246, .16), transparent 34%),
        linear-gradient(135deg, #020617 0%, #07111f 48%, #0f172a 100%);
    --nvr-login-grid-color: rgba(125, 211, 252, .085);
    --nvr-login-surface: rgba(15, 23, 42, .78);
    --nvr-login-surface-solid: #0f172a;
    --nvr-login-feature-surface: rgba(15, 23, 42, .62);
    --nvr-login-feature-surface-hover: rgba(30, 41, 59, .82);
    --nvr-login-input-bg: rgba(2, 6, 23, .72);
    --nvr-login-input-focus-bg: rgba(15, 23, 42, .94);
    --nvr-login-card-shadow: 0 34px 100px rgba(0, 0, 0, .46);
    --nvr-login-soft-shadow: 0 24px 70px rgba(0, 0, 0, .32);
    --nvr-login-logo-shadow: 0 24px 76px rgba(0, 0, 0, .30);
    --nvr-login-bg-filter: saturate(.95) brightness(.42) contrast(1.06);
    --nvr-login-bg-opacity: .66;
}

html,
body {
    min-height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body.login-page {
    min-height: 100vh !important;
    width: 100vw !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    position: relative !important;
    overflow-x: hidden !important;
    background: var(--nvr-login-body-bg) !important;
    color: var(--nvr-login-ink);
    font-family: Inter, "Source Sans Pro", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    transition: background .25s ease, color .25s ease;
}

.login-page,
.register-page {
    height: auto;
    background: transparent !important;
}

.nvr-login-page {
    min-height: 100vh;
    width: 100vw !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0;
    position: relative;
    left: 0;
    right: 0;
    isolation: isolate;
    overflow: hidden;
    background: var(--nvr-login-page-bg);
}

.nvr-login-bg {
    position: absolute;
    inset: 0;
    z-index: -3;
    background-image: var(--nvr-login-bg-image, none);
    background-repeat: no-repeat;
    background-position: center;
    -webkit-background-size: 100% 100%;
    background-size: 100% 100%;
    transform: none;
    filter: var(--nvr-login-bg-filter);
    opacity: var(--nvr-login-bg-opacity);
    animation: none;
}

.nvr-login-page::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image:
        linear-gradient(var(--nvr-login-grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--nvr-login-grid-color) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, .92), transparent 78%);
}

.nvr-login-glow {
    position: absolute;
    z-index: -1;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    filter: blur(16px);
    opacity: .72;
    pointer-events: none;
    animation: nvr-float 8s ease-in-out infinite;
}

.nvr-login-glow-one {
    top: 8%;
    left: 8%;
    background: radial-gradient(circle, rgba(56, 189, 248, .32), transparent 68%);
}

.nvr-login-glow-two {
    right: 8%;
    bottom: 6%;
    background: radial-gradient(circle, rgba(37, 99, 235, .22), transparent 70%);
    animation-delay: -3s;
}

.nvr-login-shell {
    min-height: 100vh;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, .75fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
    padding: clamp(24px, 5vw, 58px) clamp(16px, 4vw, 48px);
    box-sizing: border-box;
}

.nvr-login-hero {
    color: var(--nvr-login-ink);
    animation: nvr-slide-in-left .72s ease both;
}

.nvr-login-logo-card {
    width: min(380px, 82vw);
    min-height: 142px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 36px;
    border: 1px solid var(--nvr-login-glass-border);
    border-radius: 34px;
    background: color-mix(in srgb, var(--nvr-login-surface-solid) 58%, transparent);
    box-shadow: var(--nvr-login-logo-shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    position: relative;
    overflow: hidden;
}

.nvr-login-logo-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, .60) 45%, transparent 65%);
    transform: translateX(-130%);
    animation: nvr-shimmer 4.8s ease-in-out infinite;
}

.nvr-login-logo {
    width: 100%;
    max-width: 310px;
    max-height: 110px;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.nvr-login-hero-copy {
    margin-top: clamp(32px, 5vw, 54px);
    max-width: 620px;
}

.nvr-login-kicker,
.nvr-login-card-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    line-height: 1;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--nvr-login-primary-dark);
}

.nvr-login-kicker::before {
    content: "";
    width: 34px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--nvr-login-primary), var(--nvr-login-accent));
}

.nvr-login-hero-copy h1 {
    margin: 18px 0 18px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: .98;
    letter-spacing: -.055em;
    font-weight: 900;
    color: var(--nvr-login-heading);
    text-wrap: balance;
}

.nvr-login-hero-copy p {
    max-width: 560px;
    margin: 0;
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.75;
    color: var(--nvr-login-muted);
}

.nvr-login-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 620px;
    margin-top: clamp(26px, 4vw, 42px);
}

.nvr-login-feature-card {
    padding: 18px;
    border: 1px solid var(--nvr-login-glass-border);
    border-radius: 24px;
    background: var(--nvr-login-feature-surface);
    box-shadow: var(--nvr-login-soft-shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform .24s ease, box-shadow .24s ease, background .24s ease;
}

.nvr-login-feature-card:hover {
    transform: translateY(-4px);
    background: var(--nvr-login-feature-surface-hover);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .14);
}

.nvr-login-feature-card span {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    box-shadow: 0 12px 28px rgba(37, 99, 235, .26);
    margin-bottom: 13px;
}

.nvr-login-feature-card strong,
.nvr-login-feature-card small {
    display: block;
}

.nvr-login-feature-card strong {
    color: var(--nvr-login-ink);
    font-size: 15px;
    margin-bottom: 4px;
}

.nvr-login-feature-card small {
    color: var(--nvr-login-muted);
    line-height: 1.55;
}

.nvr-login-panel-wrap {
    display: flex;
    justify-content: flex-end;
    animation: nvr-slide-in-right .72s ease both;
}

.nvr-login-card {
    width: min(100%, 440px);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--nvr-login-card-border);
    border-radius: 34px;
    background: var(--nvr-login-surface);
    box-shadow: var(--nvr-login-card-shadow);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: clamp(24px, 4vw, 34px);
}

.nvr-login-card-accent {
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    background: linear-gradient(90deg, #2563eb, #38bdf8, #93c5fd);
}

.nvr-login-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
}

.nvr-login-card-header h2 {
    margin: 9px 0 0;
    font-size: 34px;
    line-height: 1;
    letter-spacing: -.04em;
    font-weight: 900;
    color: var(--nvr-login-ink);
}

.nvr-login-lock-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    box-shadow: 0 16px 36px rgba(37, 99, 235, .24);
}

.nvr-login-alert .alert {
    border: 0;
    border-radius: 18px;
    margin: 0 0 18px;
    box-shadow: none;
    font-size: 13px;
}

.nvr-login-form {
    margin: 0;
}

.nvr-input-shell {
    position: relative;
    margin-bottom: 18px;
}

.nvr-login-form-group {
    margin: 0;
}

.nvr-login-label,
.nvr-login-card .control-label {
    display: block;
    margin-bottom: 8px;
    color: var(--nvr-login-label);
    font-size: 13px;
    line-height: 1.25;
    font-weight: 800;
}

.nvr-input-icon {
    position: absolute;
    left: 16px;
    bottom: 13px;
    z-index: 2;
    color: var(--nvr-login-muted);
    font-size: 15px;
    pointer-events: none;
    transition: color .2s ease, transform .2s ease;
}

.nvr-login-input,
.nvr-login-card .form-control {
    width: 100%;
    height: 50px;
    border: 1px solid var(--nvr-login-border) !important;
    border-radius: 18px !important;
    background: var(--nvr-login-input-bg) !important;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .06) !important;
    color: var(--nvr-login-ink) !important;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 48px 12px 46px !important;
    outline: none !important;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, transform .2s ease;
}

.nvr-login-input::placeholder,
.nvr-login-card .form-control::placeholder {
    color: var(--nvr-login-placeholder);
    font-weight: 500;
}

.nvr-input-shell:focus-within .nvr-input-icon {
    color: var(--nvr-login-primary);
    transform: translateY(-1px);
}

.nvr-login-input:focus,
.nvr-login-card .form-control:focus {
    border-color: rgba(37, 99, 235, .68) !important;
    background: var(--nvr-login-input-focus-bg) !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12), 0 14px 32px rgba(15, 23, 42, .09) !important;
}

.nvr-password-toggle,
.text-eye {
    position: absolute !important;
    right: 4px !important;
    bottom: 4px !important;
    z-index: 4 !important;
    width: 28px;
    height: 28px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #64748b !important;
    background: transparent;
    cursor: pointer;
    pointer-events: all !important;
    transition: color .2s ease, background .2s ease;
}

.nvr-password-toggle:hover,
.text-eye:hover {
    color: var(--nvr-login-primary) !important;
    background: rgba(37, 99, 235, .08);
}

.kv-feedback-success,
.kv-feedback-error,
.has-error .kv-feedback-default,
.has-success .kv-feedback-default {
    display: block;
}

.nvr-login-card .help-block,
.nvr-login-card .invalid-feedback {
    margin: 7px 0 0;
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
}

.nvr-login-card .has-error .form-control {
    border-color: rgba(220, 38, 38, .58) !important;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, .10) !important;
}

.nvr-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 22px;
    color: var(--nvr-login-muted);
    font-size: 13px;
}

.nvr-login-remember,
.nvr-login-remember .checkbox,
.nvr-login-remember label {
    margin: 0 !important;
}

.nvr-login-remember label {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    color: var(--nvr-login-muted);
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}

.nvr-login-checkbox,
.nvr-login-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0 !important;
    accent-color: var(--nvr-login-primary);
}

.nvr-login-hint {
    text-align: right;
    white-space: nowrap;
}

.nvr-login-submit {
    width: 100%;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 58%, #38bdf8 100%);
    box-shadow: 0 18px 40px rgba(37, 99, 235, .28);
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .02em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.nvr-login-submit::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, .26) 42%, transparent 68%);
    transform: translateX(-120%);
    transition: transform .55s ease;
}

.nvr-login-submit span,
.nvr-login-submit i {
    position: relative;
    z-index: 1;
}

.nvr-login-submit:hover,
.nvr-login-submit:focus {
    color: #ffffff;
    filter: saturate(1.08);
    transform: translateY(-2px);
    box-shadow: 0 22px 46px rgba(37, 99, 235, .34);
    outline: none;
}

.nvr-login-submit:hover::before,
.nvr-login-submit:focus::before {
    transform: translateX(120%);
}

.nvr-login-submit:active {
    transform: translateY(0);
}

.nvr-login-captcha {
    margin-bottom: 18px;
}

.nvr-login-captcha .form-group {
    margin: 0;
}

.nvr-captcha-image {
    display: flex;
    justify-content: center;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 18px;
    border: 1px dashed rgba(37, 99, 235, .28);
    background: rgba(37, 99, 235, .06);
}

.nvr-captcha-image img {
    border-radius: 12px;
}

.nvr-sso-placeholder {
    display: none;
}



/* Login theme toggle */
.nvr-login-theme-toggle {
    position: absolute;
    top: clamp(18px, 3vw, 32px);
    right: clamp(18px, 3vw, 36px);
    z-index: 5;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .42rem .85rem .42rem .52rem;
    border: 1px solid var(--nvr-login-card-border);
    border-radius: 999px;
    color: var(--nvr-login-ink);
    background: color-mix(in srgb, var(--nvr-login-surface-solid) 78%, transparent);
    box-shadow: var(--nvr-login-soft-shadow);
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.nvr-login-theme-toggle i {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    box-shadow: 0 10px 22px rgba(37, 99, 235, .24), inset 0 1px 0 rgba(255, 255, 255, .24);
}

.nvr-login-theme-toggle:hover,
.nvr-login-theme-toggle:focus {
    color: var(--nvr-login-ink);
    transform: translateY(-2px);
    box-shadow: 0 24px 62px rgba(37, 99, 235, .20);
    outline: none;
}

html.dark .nvr-login-theme-toggle,
body.dark-mode .nvr-login-theme-toggle {
    background: rgba(15, 23, 42, .72);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .36);
}

html.dark .nvr-login-theme-toggle i,
body.dark-mode .nvr-login-theme-toggle i {
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
}

html.dark .nvr-login-page::after,
body.dark-mode .nvr-login-page::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background: radial-gradient(circle at 70% 20%, rgba(56, 189, 248, .10), transparent 28%);
}

html.dark .nvr-login-logo-card::after,
body.dark-mode .nvr-login-logo-card::after {
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, .18) 45%, transparent 65%);
}

html.dark .nvr-login-card,
body.dark-mode .nvr-login-card,
html.dark .nvr-login-logo-card,
body.dark-mode .nvr-login-logo-card,
html.dark .nvr-login-feature-card,
body.dark-mode .nvr-login-feature-card {
    backdrop-filter: blur(24px) saturate(135%);
    -webkit-backdrop-filter: blur(24px) saturate(135%);
}

html.dark .nvr-login-card-header h2,
body.dark-mode .nvr-login-card-header h2,
html.dark .nvr-login-hero-copy h1,
body.dark-mode .nvr-login-hero-copy h1,
html.dark .nvr-login-feature-card strong,
body.dark-mode .nvr-login-feature-card strong {
    color: var(--nvr-login-heading);
}

html.dark .nvr-login-hero-copy p,
body.dark-mode .nvr-login-hero-copy p,
html.dark .nvr-login-feature-card small,
body.dark-mode .nvr-login-feature-card small,
html.dark .nvr-login-hint,
body.dark-mode .nvr-login-hint {
    color: var(--nvr-login-muted);
}

html.dark .nvr-login-label,
html.dark .nvr-login-card .control-label,
html.dark .nvr-login-remember label,
body.dark-mode .nvr-login-label,
body.dark-mode .nvr-login-card .control-label,
body.dark-mode .nvr-login-remember label {
    color: var(--nvr-login-label);
}

html.dark .nvr-login-input,
html.dark .nvr-login-card .form-control,
body.dark-mode .nvr-login-input,
body.dark-mode .nvr-login-card .form-control {
    border-color: var(--nvr-login-border) !important;
    color: var(--nvr-login-ink) !important;
    box-shadow: 0 14px 36px rgba(0, 0, 0, .24) !important;
}

html.dark .nvr-login-input:focus,
html.dark .nvr-login-card .form-control:focus,
body.dark-mode .nvr-login-input:focus,
body.dark-mode .nvr-login-card .form-control:focus {
    border-color: rgba(56, 189, 248, .62) !important;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, .14), 0 18px 42px rgba(0, 0, 0, .34) !important;
}

html.dark .nvr-login-alert .alert,
body.dark-mode .nvr-login-alert .alert {
    color: #e5e7eb;
    background: rgba(15, 23, 42, .82);
    border: 1px solid rgba(148, 163, 184, .22);
}

html.dark .nvr-captcha-image,
body.dark-mode .nvr-captcha-image {
    border-color: rgba(56, 189, 248, .28);
    background: rgba(56, 189, 248, .08);
}

@keyframes nvr-slide-in-left {
    from {
        opacity: 0;
        transform: translate3d(-26px, 16px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes nvr-slide-in-right {
    from {
        opacity: 0;
        transform: translate3d(26px, 16px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes nvr-float {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(16px, -18px, 0) scale(1.04);
    }
}

@keyframes nvr-shimmer {
    0%, 42% {
        transform: translateX(-130%);
    }
    72%, 100% {
        transform: translateX(130%);
    }
}

@keyframes nvr-login-bg-pan {
    from {
        background-position: center, center;
    }
    to {
        background-position: center, calc(50% + 10px) calc(50% + 6px);
    }
}

@media (max-width: 991.98px) {
    .nvr-login-shell {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 680px;
        gap: 28px;
        align-items: start;
        padding: 28px 18px;
    }

    .nvr-login-hero {
        text-align: center;
    }

    .nvr-login-logo-card {
        width: min(340px, 86vw);
        min-height: 128px;
        margin: 0 auto;
        padding: 26px 32px;
    }

    .nvr-login-logo {
        max-width: 280px;
        max-height: 98px;
    }

    .nvr-login-kicker {
        justify-content: center;
    }

    .nvr-login-kicker::before {
        display: none;
    }

    .nvr-login-hero-copy {
        margin: 26px auto 0;
    }

    .nvr-login-hero-copy h1 {
        font-size: clamp(32px, 8vw, 48px);
    }

    .nvr-login-hero-copy p {
        margin: 0 auto;
    }

    .nvr-login-feature-grid {
        margin-left: auto;
        margin-right: auto;
    }

    .nvr-login-panel-wrap {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .nvr-login-shell {
        width: 100%;
        max-width: 460px;
        padding: 18px 12px;
    }

    .nvr-login-logo-card {
        width: min(320px, 92vw);
        min-height: 118px;
        padding: 22px 26px;
        border-radius: 28px;
    }

    .nvr-login-logo {
        max-width: 265px;
        max-height: 92px;
    }

    .nvr-login-hero-copy h1 {
        font-size: 32px;
    }

    .nvr-login-feature-grid {
        grid-template-columns: 1fr;
    }

    .nvr-login-card {
        border-radius: 26px;
        padding: 24px 18px;
    }

    .nvr-login-card-header h2 {
        font-size: 30px;
    }

    .nvr-login-options {
        align-items: flex-start;
        flex-direction: column;
    }

    .nvr-login-hint {
        text-align: left;
        white-space: normal;
    }
}



@media (max-width: 575.98px) {
    .nvr-login-theme-toggle {
        top: 14px;
        right: 14px;
        min-height: 38px;
        padding: .36rem .72rem .36rem .45rem;
    }

    .nvr-login-theme-toggle span {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
