* {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        /* background: linear-gradient(135deg, #2d3436 0%, #1e272e 50%, #2d4a3e 100%); */
        background: #2B2B2B;
        background-repeat: no-repeat;
        background-position: 100%;
        background-size: cover;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        position: relative;
        overflow-x: hidden;
        padding: 20px;
    }
    
    /* Add this to your main CSS file if you don't use Bootstrap for spinners */
    .loader {
        border: 4px solid #f3f3f3;
        /* Light grey background */
        border-top: 4px solid #3498db;
        /* Blue spinner color */
        border-radius: 50%;
        width: 16px;
        height: 16px;
        animation: spin 1s linear infinite;
        display: inline-block;
        /* Keep the span visible when active */
        margin-right: 5px;
        /* Spacing between spinner and text */
    }

    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }

    .login-card img {
        display: flex;
        margin: 0 auto;
        width: 178px;
        height: 178px;
        margin-bottom: 10px;
    }

    .logo-title {
        color: #ffffff;
        font-size: 18px;
        font-weight: 600;
        margin: 0;
    }

    .logo-subtitle {
        color: #888888;
        font-size: 12px;
        margin: 0;
    }

    .signup-container {
        position: relative;
        z-index: 1;
        width: 100%;
        max-width: 810px;
    }

    .login-card {
        background: #000000;
        border-radius: 20px;
        padding: 40px;
        width: 100%;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    }

    .card-logo {
        width: 80px;
        height: 80px;
        margin: 0 auto 20px;
        display: block;
    }

    .card-title {
        color: #ffffff;
        font-size: 20px;
        font-weight: 600;
        text-align: center;
        margin-bottom: 5px;
    }

    .card-subtitle {
        color: #666666;
        font-size: 12px;
        text-align: center;
        margin-bottom: 30px;
    }

    .welcome-text {
        color: #ffffff;
        font-size: 24px;
        font-weight: 600;
        margin-bottom: 10px;
    }

    .signin-text {
        color: #888888;
        font-size: 14px;
        margin-bottom: 30px;
    }

    .form-label {
        color: #ffffff;
        font-size: 13px;
        font-weight: 500;
        margin-bottom: 10px;
    }

    .input-group {
        margin-bottom: 20px;
    }

    .form-control,
    .form-select {
        background: #1a1a1a;
        border: 1px solid #333333;
        border-radius: 10px;
        color: #ffffff;
        padding: 12px 15px 12px 12px;
        font-size: 14px;
    }

    .form-control:focus {
        background: #1a1a1a;
        border-color: #5eb8a6;
        color: #ffffff;
        box-shadow: none;
    }

    .form-control::placeholder {
        color: #666666;
    }

    .input-icon {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #5eb8a6;
        z-index: 10;
    }

    .input-wrapper {
        position: relative;
    }

    .password-toggle {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: #666666;
        cursor: pointer;
        z-index: 10;
    }

    .remember-forgot {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 25px;
    }

    .form-check {
        display: flex;
        align-items: center;
    }

    .form-check-input {
        background-color: #1a1a1a;
        border: 1px solid #333333;
        margin-right: 8px;
    }

    .form-check-input:checked {
        background-color: #5eb8a6;
        border-color: #5eb8a6;
    }

    .form-check-label {
        color: #ffffff;
        font-size: 13px;
        margin: 0;
    }

    .forgot-link {
        color: #6b8dd6;
        font-size: 13px;
        text-decoration: none;
    }

    .forgot-link:hover {
        color: #8ba8e6;
    }

    .btn-signin {
        background: linear-gradient(90deg, #5eb8a6 0%, #7b9cd8 100%);
        border: none;
        border-radius: 10px;
        /* color: #ffffff; */
        font-size: 15px;
        font-weight: 600;
        padding: 12px;
        width: 100%;
        margin-bottom: 25px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .btn-signin:hover {
        background: linear-gradient(90deg, #6bc9b6 0%, #8baee8 100%);
    }

    .signup-text {
        text-align: center;
        color: #888888;
        font-size: 13px;
    }

    .signup-link {
        color: #6b8dd6;
        text-decoration: none;
        font-weight: 500;
    }

    .signup-link:hover {
        color: #8ba8e6;
    }

    .invalid-feedback {
        color: red;
    }

    .form-control.is-invalid {
        border-color: #ef071d;

    }

    /* Responsive Styles */

    /* Tablets and below (768px) */
    @media (max-width: 768px) {
        body {
            padding: 15px;
        }

        .login-card img {
            width: 60px;
            height: 60px;
        }

        .login-card {
            padding: 30px 25px;
            border-radius: 15px;
        }

        .card-logo {
            width: 70px;
            height: 70px;
        }

        .card-title {
            font-size: 18px;
        }

        .welcome-text {
            font-size: 22px;
        }

        .signin-text {
            font-size: 13px;
            margin-bottom: 25px;
        }

        .form-control {
            padding: 11px 15px 11px 40px;
            font-size: 13px;
        }

        .input-icon {
            left: 12px;
            font-size: 14px;
        }

        .password-toggle {
            right: 12px;
        }

        .btn-signin {
            padding: 11px;
            font-size: 14px;
        }
    }

    /* Mobile devices (576px) */
    @media (max-width: 576px) {
        body {
            padding: 10px;
            align-items: flex-start;
            padding-top: 100px;
        }

        .logo-container {
            position: fixed;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            z-index: 1;
        }

        .logo-container img {
            width: 50px;
            height: 50px;
        }

        .logo-img {
            width: 50px;
            height: 50px;
            margin-bottom: 5px;
        }

        .logo-title {
            font-size: 14px;
        }

        .logo-subtitle {
            font-size: 10px;
        }

        .login-card {
            padding: 25px 20px;
            border-radius: 12px;
        }

        .card-logo {
            width: 60px;
            height: 60px;
            margin-bottom: 15px;
        }

        .card-title {
            font-size: 16px;
        }

        .card-subtitle {
            font-size: 11px;
            margin-bottom: 25px;
        }

        .welcome-text {
            font-size: 20px;
            margin-bottom: 8px;
        }

        .signin-text {
            font-size: 12px;
            margin-bottom: 20px;
        }

        .form-label {
            font-size: 12px;
            margin-bottom: 8px;
        }

        .form-control {
            padding: 10px 15px 10px 38px;
            font-size: 12px;
            border-radius: 8px;
        }

        .input-icon {
            left: 12px;
            font-size: 13px;
        }

        .password-toggle {
            right: 12px;
            font-size: 14px;
        }

        .remember-forgot {
            margin-bottom: 20px;
            flex-direction: row;
            gap: 10px;
        }

        .form-check-label {
            font-size: 12px;
        }

        .forgot-link {
            font-size: 12px;
        }

        .btn-signin {
            padding: 10px;
            font-size: 13px;
            border-radius: 8px;
            margin-bottom: 20px;
        }

        .signup-text {
            font-size: 12px;
        }

        body::before {
            width: 300px;
            height: 300px;
            right: -50px;
            top: -50px;
        }

        body::after {
            width: 250px;
            height: 250px;
            bottom: -50px;
        }
    }

    /* Small mobile devices (400px) */
    @media (max-width: 400px) {
        .login-card {
            padding: 20px 15px;
        }

        .welcome-text {
            font-size: 18px;
        }

        .card-logo {
            width: 55px;
            height: 55px;
        }

        .form-control {
            padding: 9px 12px 9px 35px;
        }

        .input-icon {
            left: 10px;
            font-size: 12px;
        }

        .password-toggle {
            right: 10px;
            font-size: 13px;
        }

        .remember-forgot {
            font-size: 11px;
        }
    }

    /* Landscape orientation for mobile */
    @media (max-height: 600px) and (orientation: landscape) {
        body {
            padding-top: 20px;
            align-items: flex-start;
        }

        .login-card {
            padding: 20px;
        }

        .card-logo {
            width: 50px;
            height: 50px;
            margin-bottom: 10px;
        }

        .welcome-text {
            font-size: 18px;
            margin-bottom: 5px;
        }

        .signin-text {
            margin-bottom: 15px;
        }

        .form-label {
            margin-bottom: 5px;
        }

        .input-group {
            margin-bottom: 12px;
        }

        .remember-forgot {
            margin-bottom: 15px;
        }

        .btn-signin {
            margin-bottom: 15px;
        }
    }

    /* Large screens */
    @media (min-width: 1200px) {
        .login-card {
            padding: 15px;
        }
    }
    .calIcon{
        position: absolute;
        right: 10px;
        top:12px;
    }

    input[type="date"]::-webkit-calendar-picker-indicator {
        /* Inverts the default black icon to white */
        filter: invert(1); 
    }