*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #fff;
    --surface: #ffffff;
    --ink: #1a1033;
    --accent: #7c3aed;
    --accent-dark: #6d28d9;
    --accent-light: #ede9fe;
    --muted: #7c6aaa;
    --border: rgba(124, 58, 237, 0.22);
    --glass: rgba(124, 58, 237, 0.06);
    --error: #e05050;
}

html, body {
    height: 100%;
    font-family: 'Be Vietnam Pro', serif;
    background: var(--bg);
    overflow: hidden;
}

.page {
    display: flex;
    height: 100vh;
    width: 100vw;
}

.slider-panel {
    flex: 1.1;
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(.4, 0, .2, 1);
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.98) saturate(1.05);
    transform: scale(1.04);
    transition: transform 8s ease;
}

.slide.active img {
    transform: scale(1);
}

.slider-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 55%,
        rgba(242, 247, 243, 0.25) 100%
    );
    z-index: 2;
    pointer-events: none;
}

.slide-caption {
    position: absolute;
    bottom: 15px;
    left: 15px;
    z-index: 3;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 16px 22px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 420px;
}

.slide-caption .tag {
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #a78bfa;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: all .8s .3s ease;
}

.slide.active .tag {
    opacity: 1;
    transform: translateY(0);
}

.slide-caption h2 {
    font-family: 'Be Vietnam Pro', serif;
    font-size: clamp(20px, 2.4vw, 20px);
    line-height: 1.3;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(16px);
    transition: all .9s .5s ease;
}

.slide.active h2 {
    opacity: 1;
    transform: translateY(0);
}

.dots {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 3;
    display: flex;
    gap: 8px;
    align-items: center;
    background: rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(245, 240, 232, .35);
    cursor: pointer;
    transition: all .3s;
}

.dot.active {
    background: #a78bfa;
    width: 20px;
    border-radius: 3px;
}

.login-panel {
    width: 440px;
    flex-shrink: 0;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 52px;
    position: relative;
    z-index: 10;
    box-shadow: -8px 0 40px rgba(124, 58, 237, 0.08);
}

.login-panel::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10%;
    bottom: 10%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--border), transparent);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 52px;
}

.logo-mark {
    width: 60px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Be Vietnam Pro', serif;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.logo-name {
    font-family: 'Be Vietnam Pro', serif;
    font-size: 22px;
    color: var(--ink);
    letter-spacing: .02em;
}

.heading {
    font-family: 'Be Vietnam Pro', serif;
    font-size: 32px;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 8px;
}

.sub {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 40px;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 11px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
    transition: color .2s;
}

.form-group:focus-within label {
    color: var(--accent);
}

.input-wrap {
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    color: var(--ink);
    font-family: 'Be Vietnam Pro', serif;
    font-size: 15px;
    outline: none;
    transition: border-color .25s, background .25s, box-shadow .25s;
}

.form-group input::placeholder {
    color: rgba(124, 106, 170, 0.45);
}

.form-group input:focus {
    border-color: var(--accent);
    background: var(--accent-light);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.pw-input {
    padding-right: 46px !important;
}

.eye-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: color .2s;
    line-height: 0;
}

.eye-btn:hover {
    color: var(--accent);
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--muted);
    user-select: none;
}

.remember input[type="checkbox"] {
    display: none;
}

.check-box {
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--border);
    border-radius: 4px;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    flex-shrink: 0;
}

.remember input:checked + .check-box {
    background: var(--accent);
    border-color: var(--accent);
}

.check-icon {
    opacity: 0;
    color: #fff;
    transition: opacity .15s;
}

.remember input:checked ~ .check-box .check-icon {
    opacity: 1;
}

.forgot {
    font-size: 13px;
    color: var(--accent);
    text-decoration: none;
    opacity: .85;
    transition: opacity .2s;
}

.forgot:hover {
    opacity: 1;
}

.btn-login {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border: none;
    border-radius: 10px;
    color: #fff;
    font-family: 'Be Vietnam Pro', serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: .04em;
    position: relative;
    overflow: hidden;
    transition: transform .15s, box-shadow .2s;
}

.btn-login::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, .15), transparent);
    opacity: 0;
    transition: opacity .2s;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

.btn-login:hover::after {
    opacity: 1;
}

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

.divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 28px 0;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .08em;
}

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

.socials {
    display: flex;
    gap: 12px;
}

.btn-social {
    flex: 1;
    padding: 12px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    color: var(--ink);
    font-family: 'Be Vietnam Pro', serif;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: border-color .2s, background .2s;
}

.btn-social:hover {
    border-color: var(--accent);
    background: var(--accent-light);
}

.btn-social svg {
    width: 18px;
    height: 18px;
}

.register-line {
    text-align: center;
    margin-top: 32px;
    font-size: 13px;
    color: var(--muted);
}

.register-line a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    margin-left: 4px;
}

.register-line a:hover {
    text-decoration: underline;
}

.login-panel > * {
    opacity: 0;
    transform: translateY(18px);
    animation: fadeUp .7s ease forwards;
}

.logo {
    animation-delay: .1s;
}

.heading {
    animation-delay: .2s;
}

.sub {
    animation-delay: .25s;
}

.form-group:nth-child(1) {
    animation-delay: .32s;
}

.form-group:nth-child(2) {
    animation-delay: .38s;
}

.options {
    animation-delay: .44s;
}

.btn-login {
    animation-delay: .5s;
}

.divider {
    animation-delay: .55s;
}

.socials {
    animation-delay: .6s;
}

.register-line {
    animation-delay: .65s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .login-panel {
        width: 380px;
        padding: 48px 36px;
    }

    .slide-caption {
        left: 32px;
        bottom: 36px;
    }

    .dots {
        right: 32px;
        bottom: 36px;
    }
}

@media (max-width: 835px) {
    html, body {
        overflow: auto;
    }

    .page {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .slider-panel {
        flex: none;
        width: 100%;
        height: 360px;
    }

    .slide-caption {
        left: 24px;
        bottom: 24px;
        padding: 12px 16px;
    }

    .slide-caption h2 {
        font-size: 18px;
    }

    .slide-caption .tag {
        font-size: 10px;
        margin-bottom: 6px;
    }

    .dots {
        right: 24px;
        bottom: 24px;
    }

    .login-panel {
        width: 100%;
        padding: 40px 32px 48px;
        box-shadow: none;
    }

    .login-panel::before {
        display: none;
    }

    .logo {
        margin-bottom: 32px;
    }

    .heading {
        font-size: 26px;
    }

    .sub {
        margin-bottom: 28px;
    }
}

@media (max-width: 480px) {
    .slider-panel {
        height: 250px;
    }

    .login-panel {
        padding: 32px 20px 40px;
    }

    .slide-caption {
        left: 16px;
        bottom: 16px;
        padding: 10px 14px;
        border-radius: 10px;
    }

    .slide-caption h2 {
        font-size: 13px;
    }

    .heading {
        font-size: 24px;
    }

    .socials {
        flex-direction: column;
    }
}

.alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13.5px;
    margin-bottom: 20px;
    animation: fadeUp .4s ease forwards;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-left: 3px solid #e05050;
    color: #b91c1c;
}

.alert-error span, .alert-success span {
    flex: 1;
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #c4b5fd;
    border-left: 3px solid #7c3aed;
    color: #4c1d95;
}

.alert-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #b91c1c;
    opacity: .6;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: opacity .2s, background .2s;
    flex-shrink: 0;
}

.alert-close:hover {
    opacity: 1;
    background: rgba(224, 80, 80, .1);
}

.alert-error.hiding,
.alert-success.hiding {
    animation: fadeDown .3s ease forwards;
}

@keyframes fadeDown {
    to {
        opacity: 0;
        transform: translateY(-8px);
    }
}
