/* Login form styling */
.login-card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 8px;
}

.login-card .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    padding: 1.5rem;
}

.login-card .card-header h4 {
    color: #2c3e50;
    font-weight: 600;
}

.login-card .card-body {
    padding: 2rem;
}

/* Form controls */
.form-control {
    border-radius: 6px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease-in-out;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
}

/* Submit button */
.btn-primary {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease-in-out;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

/* Remember me checkbox */
.form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.2rem;
}

.form-check-label {
    padding-left: 0.5rem;
    color: #6c757d;
}

/* Loading state */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 1rem;
    height: 1rem;
    top: 50%;
    left: 50%;
    margin: -0.5rem 0 0 -0.5rem;
    border: 2px solid #fff;
    border-radius: 50%;
    border-right-color: transparent;
    animation: button-loading 0.75s infinite linear;
}

@keyframes button-loading {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Session status indicator */
.session-status {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    z-index: 1050;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.session-status.active {
    background-color: #28a745;
    color: white;
}

.session-status.expiring {
    background-color: #ffc107;
    color: #212529;
    animation: pulse 1s infinite;
}

.session-status.expired {
    background-color: #dc3545;
    color: white;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
}

/* Logout confirmation modal */
.logout-modal .modal-content {
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.logout-modal .modal-header {
    border-bottom: 1px solid #eee;
    padding: 1.5rem;
}

.logout-modal .modal-body {
    padding: 2rem;
}

.logout-modal .modal-footer {
    border-top: 1px solid #eee;
    padding: 1rem;
}

/* Alert styling */
.alert {
    border: none;
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.alert-danger {
    background-color: #fff5f5;
    color: #dc3545;
}

.alert-success {
    background-color: #f0fff4;
    color: #28a745;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .login-card .card-body {
        padding: 1.5rem;
    }
    
    .btn-primary {
        padding: 0.625rem 1.25rem;
    }
    
    .session-status {
        top: auto;
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        text-align: center;
        justify-content: center;
    }
}
