:root {
    --primary-color: #032740;
    --secondary-color: #0a5c91;
    --accent-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --success-color: #28a745;
    
}

body {
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, rgba(3, 39, 64, 0.8), rgba(10, 92, 145, 0.8)), url('../images/bgimage.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
    overflow-x: hidden;
}

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.login-wrapper {
    display: flex;
    flex-direction: row;
    max-width: 1000px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.login-info {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-info::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    opacity: 0.5;
    z-index: 0;
    animation: pulse 15s infinite linear;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.login-info-content {
    position: relative;
    z-index: 1;
}

.login-info h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.login-info p {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
}

.feature-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--accent-color);
}

.login-form {
    flex: 1;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-logo {
    display: block;
    margin: 0 auto 1.5rem auto;
    height: 90px;
    transition: transform 0.3s ease;
}

.login-logo:hover {
    transform: scale(1.05);
}

.login-title {
    font-size: 1.3rem;
    font-weight: 600;    
    text-align: center;
    margin-bottom: 0.5rem;
}

.login-desc {
    color: #6c757d;
    text-align: center;
    margin-bottom: 2rem;
}

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

.form-floating > .form-control {
    padding: 1.5rem 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(3, 39, 64, 0.08);
}

.btn-primary {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border: none;
    font-weight: 500;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(3, 39, 64, 0.2);
}

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

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #6c757d;
    cursor: pointer;
    z-index: 10;
}

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

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.copyright {
    text-align: center;
    color: #adb5bd;
    margin-top: 2rem;
    font-size: 0.8rem;
}

.social-links {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(3, 39, 64, 0.1);
    color: var(--primary-color);
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.alert {
    border-radius: 10px;
    border-left: 4px solid transparent;
}

.alert-danger {
    border-left-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}

.forgot-link {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.forgot-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .login-wrapper {
        flex-direction: column;
        max-width: 600px;
    }
    
    .login-info {
        padding: 2rem;
    }
    
    .login-form {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .login-info {
        padding: 1.5rem;
    }
    
    .login-form {
        padding: 1.5rem;
    }
    
    .login-info h1 {
        font-size: 1.8rem;
    }
}

/* Animation classes */
.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}