

/* Popup Background */
.iafwmc-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 */
.iafwmc-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 */
.iafwmc-auth-popup-overlay.show {
    visibility: visible;
    opacity: 1;
}

/* Form Styles */
.iafwmc-auth-popup-title {
    margin-bottom: 15px;
    font-size: 1.5em;
    color: #333;
}

.iafwmc-auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.iafwmc-auth-label {
    font-size: 1em;
    font-weight: 600;
    color: #110303;
    text-align: left;
}

.iafwmc-auth-input,
.iafwmc-auth-select {
    width: 100% !important;
    padding: 5px !important;
    font-size: 1em !important;
    border: 1px solid #7e7a7a  !important;
    border-radius: 4px !important;
    color: #504b4b !important;
}


.iafwmc-auth-input:focus,
.iafwmc-auth-select:focus {
    border-color: #007bff;
    outline: none;
}

/* Center alignment for button */
.iafwmc-auth-button-container {
    display: flex;
    justify-content: center;
}

.iafwmc-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 */
}

.iafwmc-auth-button:hover {
    /* color: #006799;
    border-color: #006799; */
    background-color: #1a5a8a; 
}

/* Message Styles */
.iafwmc-auth-message {
    /* display: none; */
    padding: 10px;
    border-radius: 4px;
    font-size: 0.9em;
    text-align: center;
}

.iafwmc-auth-success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.iafwmc-auth-error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

/* Responsive Styles */
@media (max-width: 480px) {
    .iafwmc-auth-popup-content {
        padding: 15px;
        width: 90%;
    }

    .iafwmc-auth-popup-title {
        font-size: 1.2em;
    }

    .iafwmc-auth-input,
    .iafwmc-auth-select,
    .iafwmc-auth-button {
        font-size: 0.9em;
        padding: 8px;
    }
}

.iafwmc-auth-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}
.iafwmc-auth-label > span:first-of-type {
    color: red;
    font-weight: bold;
}
