* {
    box-sizing: border-box;
}
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background: linear-gradient(135deg, #f3e8ff 0%, #fbcfe8 100%);
}
.login-container {
    display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}
.login-left {
    flex: 1;
    padding: 56px;
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow-y: auto;
    height: 100vh;
}
.login-left-inner {
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 0;
}
.login-right {
    flex: 1;
    background: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 100%);
    position: sticky;
    top: 0;
    height: 100vh;
    flex-shrink: 0;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px;
    overflow: hidden;
}
.login-right::before {
    content: '';
    position: absolute;
    top: -40%; left: -20%;
    width: 500px; height: 500px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    pointer-events: none;
}
.login-right::after {
    content: '';
    position: absolute;
    bottom: -20%; right: -15%;
    width: 400px; height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    pointer-events: none;
}

/* ── Carousel ── */
.feature-carousel {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 2;
}
.carousel-slide {
    display: none;
}
.carousel-slide.active {
    display: block;
    animation: fadeUp 0.5s ease;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
}
.feature-badge i { font-size: 0.75rem; }
.carousel-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.3;
}
.carousel-desc {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.78);
    margin-bottom: 24px;
    line-height: 1.65;
}
.use-case-box {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 16px;
    padding: 18px;
    backdrop-filter: blur(10px);
}
.uc-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.uc-row + .uc-row {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.12);
}
.uc-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}
.uc-avatar.user { background: rgba(255,255,255,0.22); color: #fff; }
.uc-avatar.ai   { background: #8b5cf6; color: #fff; }
.uc-bubble {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.88);
    line-height: 1.55;
    padding-top: 3px;
}
.uc-bubble strong {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 3px;
}
.carousel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 28px;
}
.carousel-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}
.cdot {
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 999px;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.35s ease;
}
.cdot.active {
    width: 22px;
    background: #fff;
}
.carousel-nav {
    display: flex;
    gap: 8px;
}
.cnav-btn {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    transition: background 0.2s;
}
.cnav-btn:hover { background: rgba(255,255,255,0.28); }

.brand {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}
.brand-logo {
    width: 36px;
    height: 36px;
    background: #8b5cf6;
    border-radius: 50%;
    border-top-right-radius: 0;
    transform: rotate(-45deg);
}
.create-account {
    color: #8b5cf6;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.create-account:hover {
    color: #6d28d9;
}
.create-account-container {
    text-align: center;
    margin-top: 16px;
}
.login-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}
.login-subtitle {
    font-size: 0.95rem;
    color: #4b5563;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}
.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 8px;
    display: block;
}
.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #1f2937;
    transition: all 0.2s;
    background-color: #fff;
}
.form-control::placeholder {
    color: #9ca3af;
    font-weight: 400;
}
.form-control:focus {
    outline: none;
    border-color: #a78bfa;
    box-shadow: 0 0 0 4px #ede9fe;
}
.forgot-pwd-container {
    display: flex;
    justify-content: flex-end;
    margin-top: -6px;
    margin-bottom: 24px;
}
.forgot-pwd {
    font-size: 0.85rem;
    color: #8b5cf6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.forgot-pwd:hover {
    color: #6d28d9;
}
.btn-login {
    width: 100%;
    padding: 16px;
    background: #8b5cf6;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 8px 16px rgba(139, 92, 246, 0.25);
}
.btn-login:hover {
    background: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(139, 92, 246, 0.35);
}
.btn-login:active {
    transform: translateY(0);
}


.login-left::-webkit-scrollbar {
    width: 4px;
}
.login-left::-webkit-scrollbar-track {
    background: transparent;
}
.login-left::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 999px;
}
.login-left::-webkit-scrollbar-thumb:hover {
    background: #d1d5db;
}

@media (max-width: 900px) {
    .login-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }
    .login-right {
        display: none;
    }
    .login-left {
        flex: none;
        width: 100%;
        height: auto;
        min-height: 100vh;
        padding: 48px 40px;
        overflow-y: visible;
        justify-content: flex-start;
    }
    .login-left-inner {
        max-width: 480px;
        padding: 0;
    }
    .brand {
        margin-bottom: 40px;
    }
    .login-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .login-left {
        padding: 40px 24px;
    }
    .login-left-inner {
        max-width: 100%;
    }
    .login-title {
        font-size: 1.75rem;
    }
    .brand {
        margin-bottom: 32px;
    }
    .login-subtitle {
        font-size: 0.9rem;
        margin-bottom: 24px;
    }
    .form-control {
        padding: 13px 14px;
        font-size: 1rem; /* prevent iOS zoom on focus */
    }
    .btn-login {
        padding: 15px;
    }
    .divider {
        margin: 20px 0;
    }
}
