/* Enhanced Login Form Styles */
.login-box {
    padding: 40px 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-control-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.text-danger {
    color: #dc3545 !important;
}

/* Branch Selector */
.category-subcontainer {
    margin: 22px 0px 28px;
    position: relative;
}

.form-heading {
    display: block;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.branch-selector {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.branch-item input[type="radio"] {
    display: none;
}

.branch-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 100px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.branch-card:hover {
    border-color: #28a745;
}

.branch-item input[type="radio"]:checked + .branch-card {
    border-color: #28a745;
    border-width: 3px;
}

.branch-item input[type="radio"]:checked + .branch-card::after {
    content: '✓';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    border: 3px solid white;
}

.branch-card i {
    font-size: 32px;
    color: #9ca3af;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.branch-item input[type="radio"]:checked + .branch-card i {
    color: #28a745;
}

.branch-card span {
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    text-align: center;
    transition: color 0.3s ease;
}

.branch-item input[type="radio"]:checked + .branch-card span {
    color: #28a745;
}

.branch-selector.is-invalid .branch-card {
    border-color: #dc3545;
}

@media (max-width: 576px) {
    .branch-selector {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
}

/* Form Input Enhancements */
.form-control {
    height: 45px;
    border: 1px solid #e0e6ed;
    border-radius: 5px;
    padding: 12px 15px;
    font-size: 14px;
}

.form-control:focus {
    border-color: #1b00ff;
    box-shadow: 0 0 0 0.2rem rgba(27, 0, 255, 0.25);
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
    font-size: 12px;
    color: #dc3545;
    margin-top: 5px;
}

/* Button Enhancements */
.btn-primary {
    background: linear-gradient(135deg, #1b00ff 0%, #0066ff 100%);
    border: none;
    height: 50px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0066ff 0%, #1b00ff 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(27, 0, 255, 0.3);
}

/* Alert Enhancements */
.alert {
    border-radius: 5px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Login Title */
.login-title h2 {
    font-weight: 600;
    margin-bottom: 30px;
}

/* Remember Me Checkbox */
.custom-control-label {
    font-size: 14px;
    color: #666;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .login-box {
        padding: 30px 20px;
    }
    
    .form-control, .bootstrap-select .dropdown-toggle {
        height: 40px;
    }
    
    .btn-primary {
        height: 45px;
    }
}