:root {
    --primary-color: #10b981;
    /* Vibrant Emerald */
    --primary-hover: #059669;
    --secondary-bg: #f8fafc;
    --text-dark: #0d3d36;
    --text-light: #64748b;
    --white: #ffffff;
    --error: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--white);
    height: 100vh;
    display: flex;
    overflow: hidden;
}

.login-container {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Left Side - Form */
.login-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    position: relative;
    /* For absolute positioning of back button */
}

.back-home {
    position: absolute;
    top: 15px;
    left: 40px;
    text-decoration: none;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    z-index: 10;
}

.back-home:hover {
    color: var(--primary-color);
    transform: translateX(-4px);
}

.login-form-wrapper {
    width: 100%;
    max-width: 400px;
}

.logo-container {
    margin-bottom: 40px;
}

.logo-placeholder {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

h1 {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.subtitle {
    color: var(--text-light);
    margin-bottom: 32px;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

label span {
    color: var(--error);
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    background-color: rgba(241, 245, 249, 0.5);
    backdrop-filter: blur(4px);
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-dark);
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
    transform: translateY(-1px);
}

.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.2s;
    z-index: 5;
}

.password-wrapper i:hover {
    color: var(--primary-color);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.sign-in-btn {
    width: 100%;
    padding: 16px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.sign-in-btn:hover:not(:disabled) {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.3);
}

.sign-in-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-text {
    transition: all 0.3s ease;
}

.sign-in-btn.loading .btn-text {
    opacity: 0;
    transform: translateY(-10px);
}

.btn-loader {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    transform: scale(0.5);
}

.sign-in-btn.loading .btn-loader {
    opacity: 1;
    transform: scale(1);
    animation: btn-spin 0.8s linear infinite;
}

@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}

.signup-prompt {
    margin-top: 32px;
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
}

.signup-link {
    display: block;
    margin-top: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* Right Side - Visual */
.login-right {
    flex: 1.2;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    color: white;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.login-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 20%);
    animation: bg-pulse 10s infinite alternate;
}

@keyframes bg-pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.login-right h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    max-width: 500px;
    line-height: 1.2;
    z-index: 1;
}

.login-right p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 500px;
    line-height: 1.6;
    margin-bottom: 40px;
    z-index: 1;
}

.mockup-display {
    width: 80%;
    height: 350px;
    background: #1e293b;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-display {
    width: 90%;
    max-width: 600px;
    height: 350px;
    background: #1e293b;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    /* Ensure images don't spill */
}

.image-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.mockup-img {
    position: absolute;
    top: 20px;
    left: 20px;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    object-fit: cover;
    border: 5px solid #b1e5d4;
    border-radius: 8px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 1s ease;
    transform: scale(1.05);
}

.mockup-img.active {
    opacity: 1;
    /* Full visibility for feature screenshots */
    transform: scale(1);
}

.play-button {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease;
    z-index: 1;
    /* Above images */
}

.play-button:hover {
    transform: scale(1.1);
    background: var(--primary-hover);
}

.floating-badge {
    position: absolute;
    bottom: 30px;
    right: -20px;
    background: white;
    color: var(--text-dark);
    padding: 12px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    z-index: 5;
}

.badge-dot {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
}

.badge-dot.pulse {
    animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.8);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Marketing Slider Styles */
.marketing-slider {
    position: relative;
    width: 100%;
    max-width: 500px;
    min-height: 180px;
    margin-bottom: 20px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: all 0.6s ease;
    transform: translateY(20px);
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    position: relative;
}

.slider-dots {
    display: flex;
    gap: 10px;
    margin-top: 40px;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    width: 24px;
    border-radius: 10px;
}

#badge-text {
    transition: opacity 0.3s ease;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        flex-direction: column;
        overflow: auto;
    }

    .login-right {
        display: none;
    }

    .login-left {
        padding: 40px 20px;
    }

    .login-form-wrapper h1 {
        font-size: 22px;
        margin-bottom: 6px;
    }

    .login-form-wrapper .subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }
}