/**
 * Aussietecture Member Auth
 */

/* ---------------------------------------------------------
   FRONTEND BUTTONS
--------------------------------------------------------- */

.aus-auth-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.aus-auth-wrapper button {
    cursor: pointer;
}

/* Header Trade Login / Logout */
.aus-header-auth-btn {
    white-space: nowrap;
}

.aus-header-auth-btn.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ---------------------------------------------------------
   POPUP
   Same rules the Classic Travertine (single-flooring) template
   uses inline, so the popups work identically on every page.
--------------------------------------------------------- */

.aus-auth-popup.fox-account-popup {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.aus-auth-popup.fox-account-popup.is-open {
    display: flex;
}

.aus-auth-popup .fox-account-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .65);
}

.aus-auth-popup .fox-account-popup-close {
    position: absolute;
    top: 12px;
    right: 15px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 34px;
    line-height: 1;
    color: #222;
    cursor: pointer;
}

.aus-auth-popup .fox-account-popup-close:hover {
    opacity: .6;
}

.aus-auth-popup .fox-account-popup-header {
    margin-bottom: 30px;
}

@media (max-width: 767px) {
    .aus-auth-popup.fox-account-popup {
        padding: 10px;
    }
}

/* .aus-auth-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
}

.aus-auth-popup.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.aus-auth-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.aus-auth-modal {
    position: relative;
    z-index: 2;
    width: calc(100% - 30px);
    max-width: 850px;
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.aus-auth-modal-content {
    padding: 35px;
}

.aus-auth-modal-content h2 {
    margin: 0 0 25px;
    font-size: 28px;
    line-height: 1.2;
}

.aus-auth-close {
    position: absolute;
    right: 15px;
    top: 12px;
    width: 35px;
    height: 35px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 30px;
    line-height: 30px;
    cursor: pointer;
    z-index: 5;
} */

/* ---------------------------------------------------------
   FORM & LAYOUT (Updated for Bottom-Border & Grid Layout)
--------------------------------------------------------- */



/* ---------------------------------------------------------
   SUBMIT
--------------------------------------------------------- */

/* .aus-auth-submit {
    width: 100%;
    padding: 13px 20px;
    border: 0;
    border-radius: 4px; 
    background: #222;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.aus-auth-submit:hover {
    opacity: 0.9;
}
.aus-auth-submit:disabled {
    opacity: 0.6;
    cursor: wait;
} */

/* ---------------------------------------------------------
   PASSWORD SHOW / HIDE
--------------------------------------------------------- */

.aus-password-field {
    position: relative;
    display: block;
}

/* Leave room so typed text never runs under the icon */
.aus-password-field .form-secondary-input {
    padding-right: 44px !important;
}

/* Hide Edge's built-in reveal button so only one eye icon shows */
.aus-password-field input::-ms-reveal,
.aus-password-field input::-ms-clear {
    display: none;
}

.aus-password-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    color: #222;
    cursor: pointer;
    line-height: 0;
    z-index: 2;
}

.aus-password-toggle:hover {
    opacity: .6;
}

.aus-password-toggle:focus-visible {
    outline: 1px solid #222;
    outline-offset: 2px;
}

.aus-password-toggle .aus-icon-eye-off,
.aus-password-toggle.is-visible .aus-icon-eye {
    display: none;
}

.aus-password-toggle.is-visible .aus-icon-eye-off {
    display: block;
}

/* ---------------------------------------------------------
   MESSAGES
--------------------------------------------------------- */

.aus-auth-message {
    display: none;
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 4px;
    font-size: 14px;
}

.aus-auth-message.success,
.aus-auth-message.error {
    display: block;
}

.aus-auth-message.success {
    background: #e8f7ed;
    color: #176b36;
}

.aus-auth-message.error {
    background: #fdeaea;
    color: #a52222;
}

/* ---------------------------------------------------------
   LINKS
--------------------------------------------------------- */

.aus-auth-links {
    /* display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 5px;*/
}

.aus-auth-links a, .fox-account-popup-link {
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 16px;
}

/* ---------------------------------------------------------
   BODY
--------------------------------------------------------- */

body.aus-popup-open {
    overflow: hidden;
}

/* ---------------------------------------------------------
   ADMIN
--------------------------------------------------------- */

.aus-member-filters {
    display: flex;
    gap: 8px;
    margin: 20px 0;
}

.aus-status {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.aus-status-pending {
    background: #fff4d6;
    color: #8a6100;
}

.aus-status-approved {
    background: #e5f7eb;
    color: #16743a;
}

.aus-status-rejected {
    background: #fde7e7;
    color: #a52222;
}

/* Action buttons on one line */
.aus-member-table .aus-col-actions {
    width: 290px;
}

.aus-member-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
}

.aus-member-actions .button {
    margin: 0;
    white-space: nowrap;
}

.aus-member-actions .aus-member-delete {
    color: #b32d2e;
    border-color: #b32d2e;
}

.aus-member-actions .aus-member-delete:hover,
.aus-member-actions .aus-member-delete:focus {
    color: #fff;
    background: #b32d2e;
    border-color: #b32d2e;
}

/* Password column */
.aus-member-password {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.aus-member-password-value {
    padding: 2px 6px;
    font-size: 13px;
    word-break: break-all;
}

.aus-member-password-empty {
    font-size: 12px;
    color: #646970;
}

@media (max-width: 782px) {
    .aus-member-actions {
        flex-wrap: wrap;
    }
}

/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */

@media (max-width: 768px) {
    /* Collapse the 2-column grid into 1 column on mobile */
    .fox-field-width-50 {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .aus-auth-modal {
        width: calc(100% - 20px);
        max-height: 94vh;
    }

    .aus-auth-modal-content {
        padding: 25px 20px;
    }

    .aus-auth-modal-content h2 {
        font-size: 24px;
    }

    .aus-auth-links {
        flex-direction: column;
    }
}