body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    height: 100vh;
    background: url('/punepolice/public/assets/images/login-background.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

body::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(73, 109, 159, 0.65); /* dark translucent overlay */
    backdrop-filter: blur(3px);
    z-index: 1;
}

.container {
    z-index: 2;
}

.login-container {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.logo-section {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin-bottom: 1.5rem;
}

.logo-section img {
    max-height: 60px;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}

h3 {
    font-weight: 600;
    color: #1e3c72;
}

.btn-primary {
    background-color: #003366;
    border-color: #003366;
}

.btn-primary:hover {
    background-color: #002244;
    border-color: #002244;
}

.form-label {
    color: #333;
}

.alert-danger {
    font-size: 0.9rem;
}

.card {
            max-width: 600px;
            width: 100%;
            background: #fff;
            border-radius: 20px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
            overflow: hidden;
            transition: transform 0.3s ease;
        }
        .card:hover {
            transform: translateY(-5px);
        }
        .card-header {
            background: #0A3D62; /* Consistent dark blue */
            color: white;
            text-align: center;
            padding: 20px;
            border-bottom: none;
        }
        .card-header h1 {
            margin: 0;
            font-size: 1.8rem;
            font-weight: 500;
        }
        .card-body {
            padding: 30px;
        }
        .form-label {
            font-weight: 500;
            color: #333;
            margin-bottom: 8px;
        }
        .input-group-text {
            background-color: #0A3D62;
            color: white;
            border: none;
            border-radius: 10px 0 0 10px;
            padding: 12px;
        }
        .form-control, .form-select {
            border: 1px solid #ced4da;
            border-radius: 10px;
            padding: 12px;
            font-size: 1rem;
            transition: border-color 0.3s ease, box-shadow 0.3s ease;
        }
        .input-group .form-control, .input-group .form-select {
            border-radius: 0 10px 10px 0;
        }
        .form-control:focus, .form-select:focus {
            border-color: #0A3D62;
            box-shadow: 0 0 0 0.25rem rgba(10, 61, 98, 0.25);
        }
        .btn-primary {
            background-color: #0A3D62;
            border: none;
            padding: 12px 30px;
            font-size: 1.1rem;
            border-radius: 10px;
            transition: background-color 0.3s ease, transform 0.2s ease;
            width: 100%;
        }
        .btn-primary:hover {
            background-color: #004080;
            transform: translateY(-2px);
        }
        .form-check-input:checked {
            background-color: #0A3D62;
            border-color: #0A3D62;
        }
        .form-check-label {
            color: #333;
        }
        .validation-message {
            font-size: 0.9rem;
            font-weight: 500;
            margin-top: 5px;
            display: block;
        }
        .available { color: #28a745; }
        .not-available { color: #dc3545; }
        /* Bootstrap validation feedback override */
        .form-control.is-invalid, .form-select.is-invalid {
            border-color: #dc3545;
            padding-right: calc(1.5em + 0.75rem); /* Space for icon */
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right calc(0.375em + 0.1875rem) center;
            background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
        }
        .form-control.is-valid, .form-select.is-valid {
            border-color: #28a745;
            padding-right: calc(1.5em + 0.75rem); /* Space for icon */
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.1-1.4 1.1-.4l1.1 1.4 3.4-3.8c.6-.63 1.6-.2 1.2.7L4.3 6.93c-.3.34-.7.1-.9.1z'/%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right calc(0.375em + 0.1875rem) center;
            background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
        }
        .invalid-feedback, .valid-feedback {
            font-size: 0.85rem;
        }
        #step1, #step2 {
            margin-top: 20px;
            animation: fadeIn 0.5s ease-in;
        }
        #buckleNum, #district_list_div, #pst_list_div, #srpf_list_div, #hg_pathak {
            display: none;
        }
        .already-registered {
            text-align: center;
            margin-top: 20px;
            color: #555;
        }
        .already-registered a {
            color: #0A3D62;
            font-weight: 500;
            text-decoration: none;
        }
        .already-registered a:hover {
            text-decoration: underline;
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
