:root {
    --login-primary: #1677ff;
    --login-primary-hover: #0f66de;
    --login-footer-bg: #0b3a5a;
    --login-panel-bg: var(--bs-body-bg);
    --login-hero-title: var(--bs-body-color);
    --login-hero-subtitle: var(--bs-secondary-color);
    --login-muted: var(--bs-secondary-color);
    --login-divider: var(--bs-border-color);
    --login-footer-color: #ffffff;
}

html[data-bs-theme='dark'] {
    --login-footer-bg: #07283f;
    --login-footer-color: #d9e8f5;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
}

.page {
    min-height: 0;
}

.panel-wrap {
    /* background: var(--login-panel-bg); */
}

.panel {
    max-width: 520px;
    padding: 48px 32px 48px 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.brand {
    line-height: 1.1;
    margin-bottom: 8px;
}

.brand-logo {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 32px;
    height: auto;
    margin-bottom: 12px;
}

.brand strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.brand span {
    font-size: 0.8rem;
    color: var(--bs-secondary-color);
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(1.9rem, 2.8vw, 2.5rem);
    line-height: 1.15;
    color: var(--login-hero-title);
    font-weight: 700;
}

.hero-copy h2 {
    margin: 8px 0 0;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 600;
    color: var(--login-hero-subtitle);
}

.hero-copy p {
    margin: 14px 0 0;
    color: var(--login-muted);
    max-width: 38ch;
    line-height: 1.5;
    font-size: 0.98rem;
}

.btn-primary {
    --bs-btn-bg: var(--login-primary);
    --bs-btn-border-color: var(--login-primary);
    --bs-btn-hover-bg: var(--login-primary-hover);
    --bs-btn-hover-border-color: var(--login-primary-hover);
    --bs-btn-active-bg: var(--login-primary-hover);
    --bs-btn-active-border-color: var(--login-primary-hover);
    --bs-btn-padding-y: 0.65rem;
    --bs-btn-padding-x: 1rem;
    --bs-btn-font-weight: 600;
    --bs-btn-border-radius: 0.7rem;
}

.btn-outline-secondary {
    --bs-btn-padding-y: 0.65rem;
    --bs-btn-padding-x: 1rem;
    --bs-btn-font-weight: 600;
    --bs-btn-border-radius: 0.7rem;
}

.divider {
    gap: 14px;
    color: var(--bs-secondary-color);
    font-size: 0.85rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--login-divider);
}

.hint {
    margin-top: 8px;
    font-size: 0.78rem;
    color: var(--bs-secondary-color);
}

.hero {
    min-height: 300px;
    background-image: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&w=1600&q=80');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.footer {
    background: var(--login-footer-bg);
    color: var(--login-footer-color);
    font-size: 0.86rem;
}

.footer a {
    color: var(--login-footer-color);
    text-decoration: none;
    opacity: 0.92;
}

.footer a:hover {
    text-decoration: underline;
    opacity: 1;
}

@media (max-width: 991.98px) {
    .panel {
        padding: 24px;
        max-width: 100%;
    }

    .panel-wrap {
        box-shadow: none;
    }

    .hero {
        min-height: 40vh;
    }
}
.page-shell {
                min-height: 100vh;
                display: flex;
                flex-direction: column;
            }

            main.page {
                flex: 1 1 auto;
                min-height: 0;
            }

            .layout-row {
                height: 100%;
            }

            .panel-wrap {
                position: relative;
                z-index: 2;
                overflow: visible;
            }

            .panel-wrap::after {
                /*content: '';
                position: absolute;
                top: 0;
                right: -120px;
                width: 240px;
                height: 100%;
                background: #fff;
                clip-path: polygon(0 0, 62% 0, 100% 100%, 0 100%);
                z-index: 3;
                pointer-events: none;*/
            }

            .hero {
                min-height: 0;
                height: 100%;
                width: 100%;
                position: relative;
                z-index: 1;
            }

            .footer {
                flex: 0 0 auto;
            }

            @media (max-width: 991.98px) {
                .page-shell {
                    min-height: auto;
                }

                .layout-row {
                    height: auto;
                }

                .panel-wrap::after {
                    display: none;
                }
            }

            @media (min-width:1100px) {
                .page {
                    background: #fff url(/assets/images/bg_login-scaled.jpg) no-repeat center center fixed;
                }
            }