/* Password Input Group Styles - UPDATED TO MATCH REGULAR TEXTBOX WIDTH */
    .password-input-group {
        position: relative !important;
        display: flex !important;
        align-items: stretch !important;
        width: 100% !important;
        max-width: 320px !important; /* Match the width of regular textboxes */
        border: 1px solid #ced4da !important;
        border-radius: 0.375rem !important;
        overflow: hidden !important;
        background: white !important;
        margin: 0 auto !important;
    }

        .password-input-group .password-input {
            flex: 1 !important;
            border: none !important;
            border-radius: 0 !important;
            z-index: 1 !important;
            outline: none !important;
            box-shadow: none !important;
            padding: 0.375rem 0.75rem !important;
            font-size: 1rem !important;
            line-height: 1.5 !important;
            background: transparent !important;
        }

            .password-input-group .password-input:focus {
                border: none !important;
                box-shadow: none !important;
                outline: none !important;
            }

    .password-toggle-btn {
        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;
    }

        .password-toggle-btn:hover {
            background: rgba(0,0,0,0.05) !important;
            color: #495057 !important;
        }

        .password-toggle-btn:focus {
            outline: none !important;
            background: rgba(0,0,0,0.1) !important;
            box-shadow: none !important;
        }

        .password-toggle-btn i {
            font-size: 16px !important;
        }

    /* Focus states for the entire group */
    .password-input-group:focus-within {
        border-color: #28a745 !important;
        box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25) !important;
    }

    /* Mobile responsive */
    @media (max-width: 767.98px) {
        .password-input-group {
            border-radius: 0.375rem !important;
        }

        .password-input {
            font-size: 16px !important;
            padding: 0.75rem !important;
        }

        .password-toggle-btn {
            min-width: 50px !important;
            padding: 0 15px !important;
        }

        /* Basic mobile responsiveness for other elements only */
        #FirstName,
        #LastName,
        #Email,
        #PhoneNumber {
            max-width: 320px !important;
        }

        .password-input-group,
        .input-group {
            max-width: 320px !important;
        }

        .form-label {
            max-width: 320px !important;
        }

        .register-container {
            padding: 1rem !important;
        }
    }

    /* Remove old password container styles */
    .password-container {
        display: none !important;
    }

    .toggle-password {
        display: none !important;
    }

    /* Google Login Styles - UPDATED TO MATCH REGISTER BUTTON */
    .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;
        }

    /* Google Login Styles - RESTORED TO ORIGINAL */
    .btn-google {
        width: 100%;
        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;
    }

    /* UPDATED ALIGNMENT FIXES - Made container smaller and centered everything */
    .register-container {
        max-width: 500px !important;
        margin: 0 auto;
    }

    /* UPDATED BUTTON STYLES - All buttons now same size and styling */
    .btn-primary {
        width: 100% !important;
        max-width: 320px !important; /* Match input width */
        margin: 0 auto !important;
        padding: 0.5rem 1rem !important; /* py-2 equivalent */
        border-radius: 0.375rem !important; /* Rounded edges */
        font-size: 16px !important;
        font-weight: 500 !important;
        line-height: 1.5 !important;
    }

    .btn-outline-primary {
        width: 100% !important;
        max-width: 320px !important; /* Match input width */
        margin: 0 auto !important;
        padding: 0.5rem 1rem !important; /* Match register button padding */
        border-radius: 0.375rem !important; /* Rounded edges */
        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;
    }

    .form-control {
        width: 100%;
        box-sizing: border-box;
        margin: 0 auto !important;
    }

    .d-grid {
        padding-top: 5%;
        display: grid;
        width: 100%;
        justify-items: center !important;
    }

    .text-center {
        text-align: center;
    }

    .mt-3 {
        margin-top: 1rem;
    }

    .mt-2 {
        margin-top: 0.5rem;
    }

    /* UPDATED FORM GROUP ALIGNMENT - Labels now properly aligned above inputs */
    .mb-3 {
        display: block !important; /* Change from flex to block */
        margin-bottom: 1rem !important;
        width: 100% !important;
        text-align: center !important; /* Center the entire form group */
    }

    .form-label {
        display: block !important; /* Make labels block elements */
        text-align: left !important; /* Keep label text left-aligned */
        width: 100% !important;
        max-width: 320px !important; /* Match input width */
        margin: 0 auto 0.5rem auto !important; /* Center the label container but keep text left */
        font-weight: 500 !important;
        color: #495057 !important;
    }

    /* Make regular textboxes match password input groups exactly */
    #FirstName,
    #LastName,
    #Email,
    #PhoneNumber {
        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;
    }

        /* Ensure regular textboxes have the same focus states as password groups */
        #FirstName:focus,
        #LastName:focus,
        #Email:focus,
        #PhoneNumber:focus {
            border-color: #28a745 !important;
            box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25) !important;
            outline: none !important;
        }

    /* Make all input groups the same width as password groups */
    .input-group {
        width: 100% !important;
        max-width: 320px !important;
        margin: 0 auto !important;
    }

    /* Center the external login container */
    .external-login-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
