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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    height: 100vh;
}

/* Split Container */
.split-container {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* Left Side - Carousel */
.split-left {
    flex: 1;
    position: relative;
    background: linear-gradient(135deg, #fafafa 0%, #e5e7eb 100%);
    overflow: hidden;
    height: 100vh;
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.slide-overlay {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    padding: 0 40px;
    z-index: 2;
}

.slide-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.slide-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* Carousel Dots */
.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

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

.dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Right Side - Form */
.split-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 40px;
    height: 100vh;
    overflow-y: auto;
}

.form-container {
    width: 100%;
    max-width: 450px;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}

.logo {
    width: 100px;
    height: auto;
    max-width: 150px;
    display: block;
    margin: 0 auto;
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
    text-align: center;
}

.form-subtitle {
    font-size: 1rem;
    color: #718096;
    text-align: center;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert-error {
    background-color: #fee;
    border: 1px solid #fcc;
    color: #c33;
}

.alert-success {
    background-color: #efe;
    border: 1px solid #cfc;
    color: #3c3;
}

/* Form Styles */
.login-form {
    margin-bottom: 24px;
}

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

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 10px;
}

.remember-me {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #4a5568;
    cursor: pointer;
}

.remember-me input {
    margin-right: 8px;
    cursor: pointer;
}

.forgot-link {
    font-size: 0.9rem;
    color: #14b8a6;
    text-decoration: none;
    font-weight: 600;
}

.forgot-link:hover {
    color: #0d9488;
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(20, 184, 166, 0.3);
}

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

.form-footer {
    text-align: center;
    font-size: 0.9rem;
    color: #718096;
}

.register-link {
    color: #14b8a6;
    text-decoration: none;
    font-weight: 600;
}

.register-link:hover {
    color: #0d9488;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .split-container {
        flex-direction: column;
    }

    .split-left {
        display: none; /* Hide carousel on mobile */
    }

    .split-right {
        flex: 1;
        padding: 20px;
    }

    .form-container {
        max-width: 100%;
    }

    .logo {
        width: 80px;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .slide-title {
        font-size: 2rem;
    }

    .slide-subtitle {
        font-size: 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .split-left,
    .split-right {
        flex: 1;
    }

    .slide-title {
        font-size: 2rem;
    }

    .logo {
        width: 90px;
    }

    .form-title {
        font-size: 1.8rem;
    }
}

/* Prevent horizontal scrolling */
html, body {
    overflow-x: hidden;
}
