﻿.login-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 450px;
    width: 100%;
}

.login-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

    .login-header h2 {
        margin: 0;
        font-weight: 300;
        font-size: 1.8rem;
    }

    .login-header p {
        margin: 0.5rem 0 0 0;
        opacity: 0.9;
        font-size: 0.9rem;
    }

.login-body {
    padding: 2rem;
    background: white;
}

.form-floating {
    margin-bottom: 1rem;
    position: relative;
}

    .form-floating > .form-control {
        height: calc(3.5rem + 2px);
        padding: 1rem 0.75rem;
        border-radius: 10px;
        border: 2px solid #e9ecef;
        transition: all 0.3s ease;
    }

        .form-floating > .form-control:focus {
            border-color: #667eea;
            box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
        }

    .form-floating > label {
        padding: 1rem 0.75rem;
        color: #6c757d;
    }

.btn-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 1rem;
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    }

.forgot-password {
    text-align: center;
    margin-top: 1rem;
}

    .forgot-password a {
        color: #667eea;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s ease;
    }

        .forgot-password a:hover {
            color: #764ba2;
            text-decoration: underline;
        }

.alert-custom {
    border: none;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    position: relative;
    padding: 1rem 1.25rem;
}

.alert-danger.alert-custom {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
}

.alert-success.alert-custom {
    background: linear-gradient(135deg, #51cf66 0%, #40c057 100%);
    color: white;
}

.close-alert {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    font-size: 0.8rem;
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    transition: all 0.3s ease;
}

    .close-alert:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.1);
    }

.validation-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.logo-section {
    text-align: center;
    margin-bottom: 1rem;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.remember-me-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
}

    .custom-checkbox input[type="checkbox"] {
        display: none;
    }

    .custom-checkbox .checkmark {
        width: 20px;
        height: 20px;
        border: 2px solid #667eea;
        border-radius: 4px;
        margin-right: 0.75rem;
        position: relative;
        transition: all 0.3s ease;
        background: white;
    }

    .custom-checkbox input[type="checkbox"]:checked + .checkmark {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-color: #667eea;
    }

        .custom-checkbox input[type="checkbox"]:checked + .checkmark::after {
            content: '✓';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            font-size: 12px;
            font-weight: bold;
        }

    .custom-checkbox .checkbox-label {
        font-size: 0.9rem;
        color: #495057;
        font-weight: 500;
        user-select: none;
    }

.security-info {
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f8ff 100%);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #667eea;
}

    .security-info h6 {
        color: #495057;
        margin-bottom: 0.5rem;
        font-weight: 600;
        font-size: 0.85rem;
    }

    .security-info p {
        color: #6c757d;
        margin: 0;
        font-size: 0.8rem;
        line-height: 1.4;
    }

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s ease;
    z-index: 10;
}

    .password-toggle:hover {
        color: #667eea;
    }

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 576px) {
    .login-container {
        padding: 1rem !important;
    }
    
    .login-header {
        padding: 1.5rem 1rem !important;
    }
    
    .login-body {
        padding: 1.5rem 1rem !important;
    }
    
    .login-header h2 {
        font-size: 1.5rem !important;
    }
    
    .remember-me-section {
        flex-direction: column !important;
        text-align: center !important;
        gap: 0.5rem !important;
    }
}