body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
}

.login-wrapper {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.login-container {
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    min-height: 600px;
    width: 500px;
}

.login-container.expanded {
    animation: expandContainer 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes expandContainer {
    from {
        width: 500px;
    }
    to {
        width: min(1100px, calc(100vw - 40px));
    }
}

[data-theme="dark"] .login-container {
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

/* Left side - Showcase */
.login-left {
    background: linear-gradient(135deg, #0d6efd 0%, #0a4fba 100%);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInLeft 0.6s ease-out 0.1s forwards;
    flex: 1;
    min-width: 500px;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Slides */
.showcase-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.showcase-slide.active {
    opacity: 1;
}

.showcase-slide.active .feature-icon,
.showcase-slide.active .feature-title,
.showcase-slide.active .feature-desc,
.showcase-slide.active .feature-highlights {
    animation: slideUp 0.5s ease-out forwards;
}

.showcase-slide.active .feature-icon { animation-delay: 0.1s; }
.showcase-slide.active .feature-title { animation-delay: 0.2s; }
.showcase-slide.active .feature-desc { animation-delay: 0.3s; }
.showcase-slide.active .feature-highlights { animation-delay: 0.4s; }

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide content */
.slide-content {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    padding: 0 40px;
    text-align: center;
}

/* Branding slide (first slide) */
.branding-slide .logo {
    width: 200px;
    height: auto;
    margin-bottom: 24px;
    filter: brightness(0) invert(1);
    opacity: 0;
    transform: scale(0.8);
    animation: brandingPop 0.5s ease-out 0.3s forwards;
}

.branding-slide h1 {
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(20px);
    animation: brandingSlideUp 0.5s ease-out 0.5s forwards;
}

.branding-slide .tagline {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    font-weight: 400;
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
    animation: brandingSlideUp 0.5s ease-out 0.7s forwards;
}

@keyframes brandingPop {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes brandingSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Feature slides */
.feature-slide .feature-icon,
.feature-slide .feature-title,
.feature-slide .feature-desc,
.feature-slide .feature-highlights {
    opacity: 0;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-icon svg {
    width: 40px;
    height: 40px;
    color: #ffffff;
}

.feature-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.feature-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    margin: 0 0 24px 0;
    line-height: 1.6;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.feature-highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.highlight-item {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* Navigation dots */
.showcase-dots {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 3;
    opacity: 0;
    animation: fadeInDots 0.4s ease-out 0.9s forwards;
}

@keyframes fadeInDots {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.showcase-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.showcase-dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

.showcase-dot.active {
    background: #ffffff;
}

/* Right side - Form */
.login-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: var(--bg-secondary);
    opacity: 0;
    overflow: hidden;
    width: 0;
    min-width: 0;
    flex-shrink: 0;
}

.login-container.expanded .login-right {
    animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInRight {
    0% {
        width: 0;
        padding: 0;
        opacity: 0;
    }
    60% {
        opacity: 0;
    }
    100% {
        width: 550px;
        padding: 60px 50px;
        opacity: 1;
    }
}

.form-container {
    width: 100%;
    max-width: 400px;
}

.form-container h2 {
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 32px;
}
.form-group {
    margin-bottom: 20px;
}
label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
}
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
    background: var(--bg-secondary);
    color: var(--text-primary);
}
input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--text-secondary);
}
.btn {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
}
.alert {
    padding: 14px 16px;
    margin-bottom: 24px;
    border-radius: 6px;
    background: var(--error-bg);
    color: var(--error-text);
    border: 1px solid var(--error-border);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 900px) {
    .login-container {
        width: 100%;
        max-width: 500px;
        flex-direction: column;
        min-height: auto;
    }

    .login-container.expanded {
        animation: none;
    }

    .login-left {
        min-width: unset;
        min-height: 350px;
    }

    .login-right {
        width: 100% !important;
        padding: 40px 30px !important;
        opacity: 0;
        animation: fadeInMobile 0.5s ease-out 0.8s forwards !important;
    }

    .login-container.expanded .login-right {
        animation: fadeInMobile 0.5s ease-out 0.8s forwards !important;
    }

    @keyframes fadeInMobile {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .branding-slide .logo {
        width: 150px;
    }

    .branding-slide h1 {
        font-size: 26px;
    }

    .branding-slide .tagline {
        font-size: 15px;
    }

    .slide-content {
        padding: 0 30px;
    }

    .feature-title {
        font-size: 20px;
    }

    .feature-desc {
        font-size: 13px;
    }

    .login-right {
        padding: 40px 30px;
    }

    .form-container h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .login-wrapper {
        padding: 10px;
    }

    .login-left {
        min-height: 300px;
        min-width: unset;
    }

    .branding-slide .logo {
        width: 120px;
        margin-bottom: 16px;
    }

    .branding-slide h1 {
        font-size: 22px;
    }

    .branding-slide .tagline {
        font-size: 14px;
    }

    .slide-content {
        padding: 0 20px;
    }

    .feature-title {
        font-size: 18px;
    }

    .feature-desc {
        font-size: 12px;
    }

    .showcase-dots {
        bottom: 16px;
        gap: 8px;
    }

    .showcase-dot {
        width: 8px;
        height: 8px;
    }

    .login-right {
        padding: 30px 20px !important;
    }

    .form-container h2 {
        font-size: 22px;
    }

    input[type="text"],
    input[type="password"] {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}
