/* Container and overall layout */
    #loginForm {
        background-color: #fff;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 3px 10px rgba(0,0,0,0.1);
        max-width: 500px;
        margin: 0 auto;
    }

    /* UPDATED FORM GROUP ALIGNMENT - Match register view */
    .mb-3 {
        display: block !important;
        margin-bottom: 1rem !important;
        width: 100% !important;
        text-align: center !important;
    }

    /* UPDATED FORM LABELS - Match register view */
    .form-label {
        display: block !important;
        text-align: left !important;
        width: 100% !important;
        max-width: 320px !important;
        margin: 0 auto 0.5rem auto !important;
        font-weight: 500 !important;
        color: #495057 !important;
    }

    /* UPDATED INPUT FIELDS - Match register view exactly */
    #loginForm .form-control {
        width: 100% !important;
        max-width: 320px !important;
        box-sizing: border-box !important;
        border: 1px solid #ced4da !important;
        border-radius: 0.375rem !important;
        padding: 0.375rem 0.75rem !important;
        font-size: 1rem !important;
        line-height: 1.5 !important;
        background: white !important;
        margin: 0 auto !important;
    }

    /* UPDATED FOCUS STATES - Match register view */
    #loginForm .form-control:focus {
        border-color: #28a745 !important;
        box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25) !important;
        outline: none !important;
    }

    /* UPDATED PASSWORD CONTAINER - Match register view styling */
    #loginForm .password-container {
        position: relative !important;
        display: flex !important;
        align-items: stretch !important;
        width: 100% !important;
        max-width: 320px !important;
        border: 1px solid #ced4da !important;
        border-radius: 0.375rem !important;
        overflow: hidden !important;
        background: white !important;
        margin: 0 auto !important;
    }

    #loginForm .password-container .form-control {
        flex: 1 !important;
        border: none !important;
        border-radius: 0 !important;
        z-index: 1 !important;
        outline: none !important;
        box-shadow: none !important;
        margin: 0 !important;
        max-width: none !important;
    }

    #loginForm .password-container .form-control:focus {
        border: none !important;
        box-shadow: none !important;
        outline: none !important;
    }

    /* UPDATED TOGGLE PASSWORD BUTTON - Match register view */
    #loginForm .toggle-password {
        position: static !important;
        border: none !important;
        background: transparent !important;
        padding: 0 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 45px !important;
        color: #6c757d !important;
        z-index: 2 !important;
        cursor: pointer !important;
        font-size: 16px !important;
    }

    #loginForm .toggle-password:hover {
        background: rgba(0,0,0,0.05) !important;
        color: #495057 !important;
    }

    /* Focus states for the entire password group */
    #loginForm .password-container:focus-within {
        border-color: #28a745 !important;
        box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25) !important;
    }

    /* UPDATED CHECKBOX STYLING - Proper center alignment */
    #loginForm .form-check {
        text-align: center !important;
        margin: 15px auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        max-width: 320px !important;
        width: 100% !important;
    }

    #loginForm .form-check-input {
        margin-right: 8px !important;
        margin-top: 0 !important;
        position: static !important;
    }

    #loginForm .form-check-label {
        margin-bottom: 0 !important;
        font-weight: normal !important;
        padding-left: 0 !important;
        position: static !important;
        display: inline !important;
    }

    #loginForm .form-check-input:checked {
        background-color: #28a745; /* green background */
        border-color: #28a745;
    }

    /* UPDATED VALIDATION MESSAGES - Match register view */
    #loginForm .validation-summary-errors,
    #loginForm .field-validation-error,
    #loginForm .text-danger {
        text-align: center;
        display: block;
        margin: 0 auto;
        color: #dc3545;
    }

    #loginForm .validation-summary-errors ul {
        list-style-type: none;
        padding-left: 0;
        margin-bottom: 20px;
    }

    /* UPDATED BUTTON STYLES - Keep original green color */
    #loginForm .btn-primary {
        width: 100% !important;
        max-width: 320px !important;
        margin: 0 auto !important;
        padding: 0.5rem 1rem !important;
        border-radius: 0.375rem !important;
        font-size: 16px !important;
        font-weight: 500 !important;
        line-height: 1.5 !important;
        background-color: #28a745 !important;
        border-color: #28a745 !important;
    }

    #loginForm .btn-primary:hover {
        background-color: #218838 !important;
        border-color: #218838 !important;
    }

    #loginForm .btn-outline-primary {
        width: 100% !important;
        max-width: 320px !important;
        margin: 0 auto !important;
        padding: 0.5rem 1rem !important;
        border-radius: 0.375rem !important;
        font-size: 16px !important;
        font-weight: 500 !important;
        line-height: 1.5 !important;
        text-decoration: none !important;
        display: inline-block !important;
        text-align: center !important;
    }

    /* UPDATED D-GRID STYLING - Match register view */
    #loginForm .d-grid {
        padding-top: 5%;
        display: grid;
        width: 100%;
        justify-items: center !important;
    }

    /* UPDATED TEXT CENTER STYLING - Match register view */
    #loginForm .text-center {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    #loginForm .mt-3 {
        margin-top: 1rem;
    }

    #loginForm .mt-2 {
        margin-top: 0.5rem;
    }

    /* UPDATED GOOGLE LOGIN STYLES - Match register view exactly */
    .divider-text {
        position: relative;
        text-align: center;
        margin: 20px 0;
    }

    .divider-text span {
        background: #fff;
        padding: 0 15px;
        position: relative;
        color: #6c757d;
        font-size: 14px;
    }

    .divider-text:before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: #dee2e6;
        z-index: -1;
    }

    .btn-google {
        width: 100%;
        max-width: 320px !important; /* Match other button widths */
        margin: 0 auto !important;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px 15px;
        border: 2px solid #dadce0;
        color: #3c4043;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        border-radius: 8px;
        font-size: 16px;
        font-weight: 500;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: pointer;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        position: relative;
        overflow: hidden;
    }

    .btn-google:hover {
        background: linear-gradient(135deg, #f8f9fa 0%, #e8eaed 100%);
        border-color: #c1c7cd;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        transform: translateY(-1px);
    }

    .btn-google:active {
        transform: translateY(0);
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

    .btn-google i {
        margin-right: 12px;
        font-size: 18px;
        background: linear-gradient(135deg, #4285f4 0%, #34a853 25%, #fbbc04 50%, #ea4335 75%, #4285f4 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .btn-google::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(66, 133, 244, 0.1), transparent);
        transition: left 0.5s;
    }

    .btn-google:hover::before {
        left: 100%;
    }

    .external-login-container {
        text-align: center;
        margin-top: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    /* Mobile responsiveness - Match register view */
    @media (max-width: 767.98px) {
        #loginForm {
            padding: 15px;
            margin: 0 10px;
        }

        #loginForm .form-control,
        #loginForm .password-container,
        #loginForm .btn-primary,
        #loginForm .btn-outline-primary,
        .btn-google {
            max-width: 320px !important;
        }

        .password-container .form-control {
            font-size: 16px !important;
            padding: 0.75rem !important;
        }

        .toggle-password {
            min-width: 50px !important;
            padding: 0 15px !important;
        }
    }