

body.login-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
    background-image: url('../img/login.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: background-position 0.3s ease;
}

.login-container {
    width: 100%;
    max-width: 550px;
    margin: 2rem 0 2rem 4rem;
    position: relative;
    z-index: 10;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    padding: 3rem 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    
    border-left: 4px solid #007bff;
}

.login-card:hover {
    transform: translateY(-5px) translateX(5px);
    box-shadow: -10px 30px 60px rgba(0, 0, 0, 0.3);
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #28a745, #ffc107, #dc3545);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.logo-section {
    text-align: center;
    margin-bottom: 1.5rem;
}

.logo-container {
    display: inline-block;
    margin-bottom: 1rem;
    position: relative;
}

.logo-container img {
    width: 120px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.logo-container:hover img {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.app-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.app-subtitle {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin: 0.5rem 0 0 0;
    font-weight: 400;
}

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

.form-group {
    margin-bottom: 1rem;
    position: relative;
}

.form-group.focused .form-label {
    color: #007bff;
    transform: translateY(-2px);
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    font-size: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: #bdc3c7;
    font-style: italic;
}

.form-control.is-valid {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.05);
}

.form-control.is-invalid {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
    accent-color: #007bff;
    cursor: pointer;
}

.form-check-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    cursor: pointer;
    user-select: none;
    transition: color 0.3s ease;
}

.form-check-input:checked + .form-check-label {
    color: #007bff;
    font-weight: 500;
}

.btn-login {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 123, 255, 0.4);
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
}

.btn-login:active {
    transform: translateY(-1px);
}

.btn-login i {
    margin-right: 0.5rem;
}

.btn-login.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-login.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.forgot-password {
    text-align: center;
    margin: 1.5rem 0;
}

.forgot-password a {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
}

.forgot-password a:hover {
    color: #0056b3;
    background: rgba(0, 123, 255, 0.1);
    transform: translateY(-2px);
}

.footer-section {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.footer-title i {
    color: #007bff;
}

.footer-description {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin: 0;
    line-height: 1.4;
}

.alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.alert-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(238, 90, 82, 0.3);
}

.alert-success {
    background: linear-gradient(135deg, #51cf66 0%, #40c057 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(64, 192, 87, 0.3);
}

.alert-warning {
    background: linear-gradient(135deg, #ffd43b 0%, #fcc419 100%);
    color: #212529;
    box-shadow: 0 8px 25px rgba(252, 196, 25, 0.3);
}

.alert-info {
    background: linear-gradient(135deg, #74c0fc 0%, #4dabf7 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(77, 171, 247, 0.3);
}

.btn-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

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

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}


@media (max-width: 1200px) {
    .login-container {
        margin: 2rem 0 2rem 2rem;
    }
}

@media (max-width: 768px) {
    body.login-page {
        justify-content: center;
    }
    
    .login-container {
        margin: 2rem 1rem;
        max-width: 500px;
    }
}

@media (max-width: 576px) {
    .login-container {
        margin: 1rem;
    }
    
    .login-card {
        padding: 2rem 1.5rem;
    }
    
    .app-title {
        font-size: 1.8rem;
    }
    
    .logo-container img {
        width: 100px;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem 1rem;
    }
    
    .app-title {
        font-size: 1.6rem;
    }
    
    .form-control {
        padding: 0.875rem 1rem;
    }
    
    .btn-login {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}


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

.login-card {
    animation: fadeInUp 0.8s ease-out;
    
}

.login-card {}


.logo-container::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.logo-container:hover::after {
    opacity: 1;
    animation: shine 1.5s ease-in-out;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}


@supports not (backdrop-filter: blur(20px)) {
    .login-card {
        background: rgba(255, 255, 255, 0.98);
    }
}


@media (prefers-color-scheme: dark) {
    .login-card {
        background: rgb(0 0 0 / 70%);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .app-title {
        background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .form-label {
        color: #e0e0e0;
    }
    
    .form-control {
        background: rgba(50, 50, 50, 0.9);
        border-color: #555;
        color: #e0e0e0;
    }
    
    .form-control:focus {
        background: rgba(50, 50, 50, 1);
        border-color: #007bff;
    }
    
    .footer-title {
        color: #e0e0e0;
    }
    
    .footer-description {
        color: #b0b0b0;
    }
}
