:root {
    --primary: #8b7fc7;
    --secondary: #9d8fd9;
    --success: #4CAF50;
    --error: #E74C3C;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
}

.login-container {
    display: flex;
    gap: 3rem;
    max-width: 1100px;
    flex-wrap: wrap;
}

.logo-side {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.logo-animated {
    max-width: 400px;
    width: 100%;
    height: auto;
    animation: floatBounce 3s ease-in-out infinite;
}

.login-card {
    flex: 1;
    min-width: 300px;
    max-width: 420px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.login-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    text-align: center;
    color: white;
    border-radius: 15px 15px 0 0;
}

.login-body {
    padding: 2rem;
}

.form-floating {
    margin-bottom: 1rem;
}

.btn-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    width: 100%;
    color: white;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.alert-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
}

.custom-alert {
    min-width: 300px;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.5s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
}

.custom-alert.success {
    background-color: var(--success);
}

.custom-alert.error {
    background-color: var(--error);
}

.close-btn {
    position: absolute;
    top: 8px;
    right: 10px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.8;
}

.close-btn:hover {
    opacity: 1;
}

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    width: 100%;
    animation: shrink 15s linear forwards;
}

@keyframes floatBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    25% {
        transform: translateY(-20px) scale(1.05);
    }
    50% {
        transform: translateY(0) scale(1);
    }
    75% {
        transform: translateY(-10px) scale(1.02);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

@keyframes shrink {
    from {
        width: 100%;
    }
    to {
        width: 0;
    }
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .logo-animated {
        max-width: 280px;
    }
}