/* Hide sidebar on login page */
#sidebar {
    display: none !important;
}

/* Remove content margin on login page */
@media (min-width: 1025px) {
    #content {
        margin-left: 0px;
    }
}

@media (max-width: 1024px) {
    .navbar-toggle {
        display: none;
    }
}

/* Modern login page styling */
body {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
    min-height: 100vh;
}

.login-container {
    min-height: calc(100vh - 45px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00AEEF 0%, #0092c7 100%);
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo img {
    max-width: 200px;
    height: auto;
}

.login-title {
    text-align: center;
    color: #333;
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 30px;
    font-family: 'Rubik', sans-serif;
}

.login-fieldset {
    border: none;
    padding: 0;
}

.login-fieldset label {
    display: block;
    color: #555;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.login-input {
    width: 100%;
    padding: 0 !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa !important;
}

.login-input:focus {
    background: white !important;
    outline: none !important;
}

.login-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #00AEEF 0%, #0092c7 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 174, 239, 0.3);
    color: white !important;
}

.login-button:active {
    transform: translateY(0);
    color: white !important;
}

.login-button:focus {
    color: white !important;
}

.forgot-password {
    text-align: center;
    margin-top: 20px;
}

.forgot-password a {
    color: #00AEEF;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    cursor: pointer;
}

.forgot-password a:hover {
    color: #0092c7;
    text-decoration: underline;
}

.login-alert {
    margin: 20px 0;
    padding: 12px 16px;
    border-radius: 8px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    text-align: center;
    font-size: 14px;
}

#loginAlertMessage {
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .login-container {
        align-items: flex-start;
        padding-top: 40px;
    }

    .login-card {
        padding: 30px 20px;
        margin: 10px;
        border-radius: 8px;
    }

    .login-title {
        font-size: 24px;
    }
}

/* Animation for smooth transitions */
.login-fieldset {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.login-fieldset:nth-child(1) { animation-delay: 0.1s; }
.login-fieldset:nth-child(2) { animation-delay: 0.2s; }
.login-fieldset:nth-child(3) { animation-delay: 0.3s; }
.login-fieldset:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
