html[data-theme-resolved='light'] .auth-brand-logo-dark { display: block; }
html[data-theme-resolved='light'] .auth-brand-logo-light { display: none; }
html[data-theme-resolved='dark'] .auth-brand-logo-light { display: block; }
html[data-theme-resolved='dark'] .auth-brand-logo-dark { display: none; }

.auth-page {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    background: #ffffff;
    overflow-x: hidden;
}

html[data-theme-resolved='dark'] .auth-page {
    background: #070814;
}

@media (min-width: 1024px) {
    .auth-page {
        display: grid;
        grid-template-columns: 1fr 1fr;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        overflow: hidden;
    }
}

@media (min-width: 1440px) {
    .auth-page {
        grid-template-columns: 1.15fr 0.85fr;
    }
}

.auth-left {
    position: relative;
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

html[data-theme-resolved='dark'] .auth-left {
    background: linear-gradient(135deg, #0f172a 0%, #020617 100%);
}

@media (min-width: 1024px) {
    .auth-left {
        display: flex;
    }
}

.auth-left__media {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 3rem;
    margin: 0;
}

.auth-left__media picture {
    display: contents;
}

.auth-left__media img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 28px;
    box-shadow: 0 40px 80px -15px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    animation: auth-img-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    user-select: none;
    -webkit-user-drag: none;
}

html[data-theme-resolved='dark'] .auth-left__media img {
    box-shadow: 0 40px 80px -15px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

@keyframes auth-img-in {
    from { opacity: 0; transform: scale(1.02); }
    to   { opacity: 1; transform: scale(1); }
}

.auth-right {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 1.5rem 1.25rem;
    background: #ffffff;
    overflow-y: auto;
}

html[data-theme-resolved='dark'] .auth-right {
    background: var(--theme-body-bg);
}

@media (min-width: 640px) {
    .auth-right {
        padding: 2rem;
    }
}

@media (min-width: 1024px) {
    .auth-right {
        min-height: auto;
        height: 100%;
        padding: 2rem 2.5rem;
    }
}

@media (min-width: 1280px) {
    .auth-right {
        padding: 2.5rem 3.5rem;
    }
}

.auth-right__inner {
    width: 100%;
    max-width: 28rem;
    animation: auth-form-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

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

.auth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.auth-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    padding: 2rem 2.5rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.02),
        0 20px 40px -10px rgba(0, 0, 0, 0.05);
}

html[data-theme-resolved='dark'] .auth-card {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 20px 40px -10px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.auth-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--theme-accent), rgba(var(--theme-accent-rgb), 0.3));
    opacity: 0.7;
}

@media (min-width: 640px) {
    .auth-card {
        padding: 2rem;
        border-radius: 1.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-left__media img,
    .auth-right__inner {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

html[data-theme-resolved='light'] .auth-left .text-white,
html[data-theme-resolved='light'] .auth-left [class~='text-white'] {
    color: #fff !important;
}