* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #6C63FF 0%, #3A3AFF 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    display: flex;
    max-width: 1000px;
    width: 100%;
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-box {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.back-home {
    display: inline-flex;
    align-items: center;
    color: #6C63FF;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.back-home:hover {
    color: #3A3AFF;
}

.back-home i {
    margin-right: 8px;
}

.login-header h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.login-header h2 i {
    color: #6C63FF;
    margin-right: 10px;
}

.login-header p {
    color: #666;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.form-group label i {
    color: #6C63FF;
    margin-right: 10px;
    width: 20px;
}

.form-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: #6C63FF;
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 45px;
    transform: translateY(-50%);
    color: #777;
    cursor: pointer;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #6C63FF;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.remember-me input {
    margin-right: 8px;
    cursor: pointer;
}

.forgot-password {
    color: #6C63FF;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #3A3AFF;
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    background: linear-gradient(135deg, #6C63FF 0%, #3A3AFF 100%);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 25px;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.2);
}

.divider {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #eee;
}

.divider span {
    padding: 0 15px;
    color: #777;
    font-size: 0.9rem;
}

.social-login {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-btn i {
    margin-right: 10px;
    font-size: 1.1rem;
}

.social-btn.google:hover {
    background-color: #f8f8f8;
    border-color: #ccc;
}

.social-btn.facebook {
    background-color: #1877f2;
    color: white;
    border-color: #1877f2;
}

.social-btn.facebook:hover {
    background-color: #166fe5;
}

.register-link {
    text-align: center;
    color: #666;
}

.register-link a {
    color: #6C63FF;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.register-link a:hover {
    color: #3A3AFF;
    text-decoration: underline;
}

.hidden {
    display: none;
}

.login-image {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.login-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 40px;
}

.image-text h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

/* Responsive */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        max-width: 500px;
    }
    
    .login-image {
        display: none;
    }
    
    .social-login {
        flex-direction: column;
    }
}