.auth-login-page {
    background:
        radial-gradient(900px 560px at 8% 10%, rgba(var(--app-primary-rgb), 0.14), transparent 62%),
        radial-gradient(760px 520px at 94% 82%, rgba(20, 184, 166, 0.1), transparent 58%),
        #f6f8fb;
}

.auth-right {
    background: rgba(255, 255, 255, 0.86);
    border-left: 1px solid rgba(15, 23, 42, 0.07);
    backdrop-filter: blur(16px);
}

.auth-panel {
    width: 100%;
    max-width: 430px;
    padding: 24px;
}

.auth-panel__inner {
    padding: 28px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.11);
}

.auth-panel__toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.theme-toggle--auth {
    flex: 0 0 auto;
}

.auth-left__bg {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    filter: saturate(1.18) contrast(1.04);
}

.auth-left__bg::before,
.auth-left__bg::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    pointer-events: none;
    z-index: 1;
}

.auth-left__bg::before {
    width: 460px;
    height: 460px;
    right: -120px;
    top: 12%;
}

.auth-left__bg::after {
    width: 320px;
    height: 320px;
    left: 7%;
    bottom: 10%;
}

.auth-left-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(2, 6, 23, 0.78) 0%, rgba(15, 23, 42, 0.7) 46%, rgba(2, 44, 55, 0.84) 100%),
        radial-gradient(760px 480px at 22% 22%, rgba(var(--app-primary-rgb), 0.28), transparent 62%),
        radial-gradient(700px 440px at 78% 74%, rgba(20, 184, 166, 0.22), transparent 60%);
    z-index: 1;
}

.auth-left__brand {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 32px 42px;
}

.auth-left__brand .sidebar-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px;
}

.auth-product {
    position: absolute;
    inset: auto 42px 36px 42px;
    max-width: 680px;
}

.auth-product__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.09);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    backdrop-filter: blur(12px);
}

.auth-product h1 {
    max-width: 620px;
    margin: 16px 0 0;
    color: #fff;
    font-size: clamp(1.85rem, 2.45vw, 2.7rem);
    line-height: 1.15;
    font-weight: 850;
    letter-spacing: 0;
}

.auth-product p {
    max-width: 600px;
    margin: 14px 0 0;
    color: rgba(226, 232, 240, 0.86);
    font-size: 0.94rem;
    line-height: 1.65;
}

.auth-proof-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    max-width: 660px;
    margin-top: 22px;
}

.auth-proof-card {
    min-height: 108px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.22);
    backdrop-filter: blur(16px);
    animation: auth-card-in 0.45s ease both;
}

.auth-proof-card:nth-child(2) { animation-delay: 0.06s; }
.auth-proof-card:nth-child(3) { animation-delay: 0.12s; }
.auth-proof-card:nth-child(4) { animation-delay: 0.18s; }

.auth-proof-card__icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-bottom: 10px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--bs-primary), #0f766e);
    box-shadow: 0 10px 24px rgba(var(--app-primary-rgb), 0.24);
}

.auth-proof-card strong,
.auth-proof-card small {
    display: block;
}

.auth-proof-card strong {
    color: #fff;
    font-size: 12.5px;
    font-weight: 850;
}

.auth-proof-card small {
    margin-top: 5px;
    color: rgba(226, 232, 240, 0.76);
    font-size: 11.5px;
    line-height: 1.35;
}

.auth-security-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    margin-top: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    color: rgba(241, 245, 249, 0.88);
    background: rgba(15, 23, 42, 0.28);
    font-size: 12px;
    font-weight: 700;
}

.auth-security-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 7px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.15);
}

.auth-heading {
    margin-bottom: 22px;
}

.auth-brand-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--bs-primary);
    box-shadow: 0 0 0 0.45rem rgba(var(--app-primary-rgb), 0.1);
    margin-bottom: 14px;
}

.auth-heading__eyebrow {
    display: block;
    color: var(--bs-primary);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.auth-title {
    margin: 6px 0 0;
    color: #0f172a;
    font-size: 30px;
    line-height: 1.1;
    font-weight: 850;
    letter-spacing: 0;
}

.auth-subtitle {
    margin: 8px 0 0;
    color: color-mix(in srgb, var(--bs-secondary) 72%, #64748b);
    font-size: 14px;
}

.auth-field {
    margin-top: 16px;
}

.auth-field label {
    display: block;
    margin-bottom: 7px;
    color: #0f172a;
    font-size: 12px;
    font-weight: 850;
}

.auth-input {
    width: 100%;
    height: 46px;
    border: 1px solid rgba(2, 6, 23, 0.12);
    border-radius: 8px;
    padding: 0 13px;
    color: #0f172a;
    background: #fff;
    font-size: 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-input:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--bs-primary) 72%, #0f172a);
    box-shadow: 0 0 0 4px rgba(var(--app-primary-rgb), 0.12);
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 15px 0 18px;
}

.auth-link {
    color: var(--bs-primary);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-switch {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: color-mix(in srgb, var(--bs-secondary) 76%, #334155);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.auth-switch label {
    margin: 0;
    cursor: pointer;
}

.auth-switch input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    display: inline-grid;
    place-content: center;
    width: 18px;
    height: 18px;
    margin: 0;
    border: 1.5px solid rgba(0, 0, 0, 0.25);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: 0.15s ease;
}

.auth-switch input[type="checkbox"]::before {
    content: "";
    width: 10px;
    height: 10px;
    clip-path: polygon(14% 44%, 0 65%, 40% 100%, 100% 18%, 80% 0, 40% 62%);
    box-shadow: inset 1em 1em #fff;
    transform: scale(0);
    transition: 0.12s ease;
}

.auth-switch input[type="checkbox"]:checked {
    border-color: var(--bs-primary);
    background: var(--bs-primary);
}

.auth-switch input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.auth-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, color-mix(in srgb, var(--bs-primary) 92%, #fff), color-mix(in srgb, var(--bs-primary) 65%, #0f172a));
    box-shadow: 0 14px 30px rgba(var(--app-primary-rgb), 0.22);
    font-weight: 850;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.auth-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(var(--app-primary-rgb), 0.27);
}

.auth-demo-panel {
    margin-top: 16px;
    padding: 13px;
    border: 1px solid rgba(var(--app-primary-rgb), 0.18);
    border-radius: 10px;
    background: color-mix(in srgb, var(--bs-primary) 6%, #fff);
}

.auth-demo-panel__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 11px;
}

.auth-demo-panel__heading > div > strong {
    display: block;
    margin-top: 2px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 850;
}

.auth-demo-password {
    flex: 0 0 auto;
    padding: 5px 7px;
    border-radius: 6px;
    color: #475569;
    background: rgba(255, 255, 255, 0.78);
    font-size: 10px;
    line-height: 1.25;
    white-space: nowrap;
}

.auth-demo-password b {
    color: #0f172a;
    font-weight: 850;
}

.auth-demo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.auth-demo-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(var(--app-primary-rgb), 0.14);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.72);
}

.auth-demo-card__copy {
    min-width: 0;
}

.auth-demo-card__label,
.auth-demo-role,
.auth-demo-card strong,
.auth-demo-card small {
    display: block;
}

.auth-demo-card__label,
.auth-demo-role {
    color: var(--bs-primary);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.auth-demo-card strong {
    margin-top: 2px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 850;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-demo-card small {
    margin-top: 2px;
    color: #64748b;
    font-size: 12px;
}

.auth-demo-card small span {
    color: #0f172a;
    font-weight: 850;
}

.auth-demo-fill {
    flex: 0 0 auto;
    height: 34px;
    padding: 0 13px;
    border: 1px solid rgba(var(--app-primary-rgb), 0.22);
    border-radius: 8px;
    color: var(--bs-primary);
    background: #fff;
    font-size: 12px;
    font-weight: 850;
}

.auth-meta {
    margin-top: 18px;
    color: color-mix(in srgb, var(--bs-secondary) 72%, #64748b);
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
}

.auth-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0 18px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 8px;
}

.auth-alert--success {
    color: #065f46;
    background: #ecfdf3;
    border-color: #a7f3d0;
}

.auth-alert--danger {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

.auth-alert__icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    color: #fff;
    background: #10b981;
    font-weight: 900;
}

.auth-alert--danger .auth-alert__icon {
    background: #ef4444;
}

.auth-alert__text {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.auth-alert__close {
    margin-left: auto;
    border: 0;
    color: inherit;
    background: transparent;
    font-size: 18px;
    line-height: 1;
    opacity: 0.65;
    cursor: pointer;
}

.auth-alert__close:hover {
    opacity: 1;
}

@keyframes auth-card-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

html[data-bs-theme="dark"] body.auth-layout,
html[data-bs-theme="dark"] .auth-login-page {
    background:
        radial-gradient(900px 600px at 0% 0%, rgba(var(--app-primary-rgb), 0.2), transparent 58%),
        radial-gradient(850px 520px at 100% 100%, rgba(20, 184, 166, 0.14), transparent 58%),
        #020617;
}

html[data-bs-theme="dark"] .auth-right {
    background: rgba(2, 6, 23, 0.62);
    border-left-color: rgba(148, 163, 184, 0.16);
}

html[data-bs-theme="dark"] .auth-panel__inner {
    background: rgba(15, 23, 42, 0.78);
    border-color: rgba(148, 163, 184, 0.16);
    box-shadow: 0 32px 90px rgba(2, 6, 23, 0.45);
}

html[data-bs-theme="dark"] .auth-title,
html[data-bs-theme="dark"] .auth-field label,
html[data-bs-theme="dark"] .auth-switch,
html[data-bs-theme="dark"] .auth-demo-panel__heading > div > strong,
html[data-bs-theme="dark"] .auth-demo-card strong,
html[data-bs-theme="dark"] .auth-demo-password b,
html[data-bs-theme="dark"] .d-lg-none h5 {
    color: #e2e8f0;
}

html[data-bs-theme="dark"] .auth-subtitle,
html[data-bs-theme="dark"] .auth-meta,
html[data-bs-theme="dark"] .auth-demo-card small,
html[data-bs-theme="dark"] .d-lg-none p {
    color: #94a3b8 !important;
}

html[data-bs-theme="dark"] .auth-input {
    color: #f8fafc;
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(148, 163, 184, 0.2);
}

html[data-bs-theme="dark"] .auth-input::placeholder {
    color: #64748b;
}

html[data-bs-theme="dark"] .auth-demo-card {
    background: rgba(var(--app-primary-rgb), 0.12);
    border-color: rgba(var(--app-primary-rgb), 0.2);
}

html[data-bs-theme="dark"] .auth-demo-panel {
    background: rgba(var(--app-primary-rgb), 0.1);
    border-color: rgba(var(--app-primary-rgb), 0.2);
}

html[data-bs-theme="dark"] .auth-demo-password {
    color: #94a3b8;
    background: rgba(15, 23, 42, 0.74);
}

html[data-bs-theme="dark"] .auth-demo-fill {
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.74);
    border-color: rgba(147, 197, 253, 0.22);
}

html[data-bs-theme="dark"] .auth-switch input[type="checkbox"] {
    background: rgba(15, 23, 42, 0.82);
    border-color: rgba(148, 163, 184, 0.32);
}

html[data-bs-theme="dark"] .auth-switch input[type="checkbox"]:checked {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
}

html[data-bs-theme="dark"] .auth-alert {
    border-color: rgba(148, 163, 184, 0.14);
}

html[data-bs-theme="dark"] .auth-alert--success {
    color: #d1fae5;
    background: rgba(6, 95, 70, 0.22);
    border-color: rgba(16, 185, 129, 0.22);
}

html[data-bs-theme="dark"] .auth-alert--danger {
    color: #fee2e2;
    background: rgba(127, 29, 29, 0.28);
    border-color: rgba(248, 113, 113, 0.22);
}

@media (max-width: 1199.98px) {
    .auth-proof-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .auth-right {
        min-height: 100vh;
        border-left: 0;
        background:
            radial-gradient(700px 440px at 20% 8%, rgba(var(--app-primary-rgb), 0.11), transparent 58%),
            #fff;
    }

    .auth-panel {
        max-width: 460px;
    }
}

@media (max-width: 575.98px) {
    .auth-panel {
        padding: 14px;
    }

    .auth-panel__inner {
        padding: 22px;
    }

    .auth-row,
    .auth-demo-panel__heading,
    .auth-demo-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-demo-grid {
        grid-template-columns: 1fr;
    }

    .auth-demo-fill {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-proof-card,
    .auth-button,
    .auth-input,
    .auth-switch input[type="checkbox"] {
        animation: none !important;
        transition: none !important;
    }
}
