.auth-right {
    background: #ffffff;
    border-left: 1px solid color-mix(in srgb, var(--bs-primary) 10%, rgba(15, 23, 42, 0.06));
}

/* panel sizing */
.auth-panel {
    width: 100%;
    max-width: 520px;
}

.auth-panel__inner {
    padding: 64px 28px;
}

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

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

/* typography */
.auth-brand-dot {
    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-title {
    font-size: 36px;
    line-height: 1.1;
    font-weight: 750;
    letter-spacing: -0.03em;
    margin: 0;
    color: #0f172a;
}

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

/* fields */
.auth-field {
    margin-top: 20px;
}

.auth-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

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

.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);
}

/* remember + forgot row */
.auth-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    margin-bottom: 22px;
}

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

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

/* custom checkbox (INLINE PERFECT) */
.auth-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: color-mix(in srgb, var(--bs-secondary) 76%, #334155);
    line-height: 1;
}

.auth-switch label {
    margin: 0;
    line-height: 1;
    cursor: pointer;
    display: inline-block;
    transform: translateY(1px);
    /* optical alignment */
}

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

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

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

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

.auth-switch input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(var(--app-primary-rgb), 0.16);
}

/* button */
.auth-button {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--bs-primary) 90%, #ffffff) 0%,
        color-mix(in srgb, var(--bs-primary) 68%, #0f172a) 100%
    );
    color: #fff;
    font-weight: 700;
    transition: 0.15s ease;
}

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

/* terms + meta */
.auth-terms {
    margin-top: 14px;
    color: color-mix(in srgb, var(--bs-secondary) 72%, #64748b);
    font-size: 13px;
    text-align: center;
}

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

/* =========================
       LEFT BACKGROUND (NOT DULL)
    ========================= */
.auth-left__bg {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    filter: saturate(1.25) contrast(1.08);
}

.auth-left-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            900px 600px at 20% 20%,
            rgba(var(--app-primary-rgb), 0.18),
            transparent 55%
        ),
        radial-gradient(
            800px 500px at 80% 40%,
            rgba(var(--app-secondary-rgb), 0.16),
            transparent 60%
        ),
        linear-gradient(
            135deg,
            color-mix(in srgb, var(--bs-primary) 28%, rgba(6, 10, 18, 0.58)) 0%,
            rgba(6, 10, 18, 0.72) 55%,
            color-mix(in srgb, var(--bs-secondary) 18%, rgba(6, 10, 18, 0.9)) 100%
        );
    z-index: 1;
}

/* quote border */
.auth-left__quote {
    border-color: rgba(255, 255, 255, 0.35) !important;
}

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

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

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

.auth-alert__text {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

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

html[data-bs-theme="dark"] body.auth-layout {
    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(var(--app-secondary-rgb), 0.14), transparent 58%),
        #020617;
}

html[data-bs-theme="dark"] .auth-right {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.98));
    border-left-color: rgba(148, 163, 184, 0.16);
}

html[data-bs-theme="dark"] .auth-panel__inner {
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 28px;
    box-shadow: 0 32px 90px rgba(2, 6, 23, 0.45);
    backdrop-filter: blur(18px);
}

html[data-bs-theme="dark"] .auth-brand-dot {
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--bs-primary) 92%, #ffffff) 0%,
        color-mix(in srgb, var(--bs-primary) 70%, #0f172a) 100%
    );
    box-shadow: 0 0 0 6px rgba(var(--app-primary-rgb), 0.16);
}

html[data-bs-theme="dark"] .auth-title,
html[data-bs-theme="dark"] .auth-field label,
html[data-bs-theme="dark"] .auth-link,
html[data-bs-theme="dark"] .auth-switch,
html[data-bs-theme="dark"] .auth-meta,
html[data-bs-theme="dark"] .d-lg-none h5 {
    color: #e2e8f0;
}

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

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

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

html[data-bs-theme="dark"] .auth-input:focus {
    border-color: rgba(var(--app-primary-rgb), 0.85);
    box-shadow: 0 0 0 4px rgba(var(--app-primary-rgb), 0.18);
}

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

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-switch input[type="checkbox"]:focus {
    box-shadow: 0 0 0 4px rgba(var(--app-primary-rgb), 0.22);
}

html[data-bs-theme="dark"] .auth-button {
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--bs-primary) 88%, #ffffff) 0%,
        color-mix(in srgb, var(--bs-primary) 62%, #0f172a) 100%
    );
    box-shadow: 0 18px 36px rgba(var(--app-primary-rgb), 0.28);
}

html[data-bs-theme="dark"] .auth-button:hover {
    box-shadow: 0 20px 38px rgba(var(--app-primary-rgb), 0.34);
}

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

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

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

html[data-bs-theme="dark"] .auth-alert--danger .auth-alert__icon {
    background: #ef4444;
}

.auth-demo-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    margin-bottom: 18px;
    border: 1px solid rgba(var(--app-primary-rgb), 0.16);
    border-radius: 12px;
    background: rgba(var(--app-primary-rgb), 0.06);
}

.auth-demo-card > div {
    display: grid;
    gap: 2px;
    min-width: 0;
    color: #334155;
    font-size: 13px;
}

.auth-demo-card strong,
.auth-demo-card span {
    overflow-wrap: anywhere;
}

.auth-demo-card__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
    font-weight: 700;
    color: var(--bs-primary);
}

.auth-demo-card__button {
    border: 1px solid rgba(var(--app-primary-rgb), 0.3);
    border-radius: 10px;
    background: #ffffff;
    color: var(--bs-primary);
    font-size: 12px;
    font-weight: 700;
    padding: 9px 12px;
    white-space: nowrap;
}

.auth-demo-card__button:hover {
    background: rgba(var(--app-primary-rgb), 0.1);
}

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

html[data-bs-theme="dark"] .auth-demo-card > div {
    color: #cbd5e1;
}

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

@media (max-width: 575.98px) {
    .auth-demo-card {
        align-items: stretch;
        flex-direction: column;
    }

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

@media (max-width: 991.98px) {
    .auth-panel__inner {
        padding: 40px 24px;
    }

    html[data-bs-theme="dark"] .auth-right {
        background: transparent;
        border-left: 0;
    }
}
