

/* Popup Background */
.iafwzcai-auth-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s;
}

/* Popup Content */
.iafwzcai-auth-popup-content {
    background: #fff;
    width: 90%;
    max-width: 500px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
}

/* Show Popup */
.iafwzcai-auth-popup-overlay.show {
    visibility: visible;
    opacity: 1;
}

/* Form Styles */
.iafwzcai-auth-popup-title {
    margin-bottom: 15px;
    font-size: 1.5em;
    color: #333;
}

.iafwzcai-auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.iafwzcai-auth-label {
    font-size: 1em;
    font-weight: 600;
    color: #110303;
    text-align: left;
}

.iafwzcai-auth-input,
.iafwzcai-auth-select {
    width: 100% !important;
    padding: 5px !important;
    font-size: 1em !important;
    border: 1px solid #7e7a7a  !important;
    border-radius: 4px !important;
    color: #504b4b !important;
}


.iafwzcai-auth-input:focus,
.iafwzcai-auth-select:focus {
    border-color: #007bff;
    outline: none;
}

/* Center alignment for button */
.iafwzcai-auth-button-container {
    display: flex;
    justify-content: center;
}

.iafwzcai-auth-button {
    padding: 5px 10px;
    color: #fff; /* WordPress blue */
    border: 1px solid #0073aa; /* Outlined border */
    background-color: #2271b1;
    border-radius: 3px;
    font-size: 13px; /* Adjusted to match WordPress button size */
    font-weight: normal; /* Matches the WordPress button weight */
    cursor: pointer;
    display: inline-block;
    text-align: center;
    line-height: 1.2; /* Adjust for balanced button height */
}

.iafwzcai-auth-button:hover {
    /* color: #006799;
    border-color: #006799; */
    background-color: #1a5a8a; 
}

/* Message Styles */
.iafwzcai-auth-message {
    /* display: none; */
    padding: 10px;
    border-radius: 4px;
    font-size: 0.9em;
    text-align: center;
}

.iafwzcai-auth-success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.iafwzcai-auth-error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

/* Responsive Styles */
@media (max-width: 480px) {
    .iafwzcai-auth-popup-content {
        padding: 15px;
        width: 90%;
    }

    .iafwzcai-auth-popup-title {
        font-size: 1.2em;
    }

    .iafwzcai-auth-input,
    .iafwzcai-auth-select,
    .iafwzcai-auth-button {
        font-size: 0.9em;
        padding: 8px;
    }
}

.iafwzcai-auth-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}
.iafwzcai-auth-label > span:first-of-type {
    color: red;
    font-weight: bold;
}
