/* =====================================================
   PWD Elite Header Elements — Shared Auth Forms
   Used by the off-canvas Account widget and the full-page
   Login/Register widget.
   ===================================================== */

.pwd-ehe-auth {
    width: 100%;
}

/* ----- Tabs (full-page widget) ----- */
.pwd-ehe-auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 1px solid #eee;
}

.pwd-ehe-auth-tab {
    flex: 1 1 auto;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease, border-color 0.3s ease;
}

.pwd-ehe-auth-tab:hover {
    opacity: 0.85;
}

.pwd-ehe-auth-tab.pwd-ehe-active {
    opacity: 1;
    border-bottom-color: currentColor;
}

/* ----- Views ----- */
.pwd-ehe-auth-view {
    display: none;
}

.pwd-ehe-auth-view.pwd-ehe-active {
    display: block;
}

/* ----- Inline messages ----- */
.pwd-ehe-auth-message {
    padding: 10px 14px;
    margin-bottom: 16px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.5;
}

.pwd-ehe-auth-message[hidden] {
    display: none;
}

.pwd-ehe-auth-message-error {
    background-color: rgba(214, 54, 56, 0.08);
    color: #d63638;
    border: 1px solid rgba(214, 54, 56, 0.25);
}

.pwd-ehe-auth-message-success {
    background-color: rgba(0, 163, 42, 0.08);
    color: #00742c;
    border: 1px solid rgba(0, 163, 42, 0.25);
}

.pwd-ehe-auth-notice {
    font-size: 14px;
    line-height: 1.6;
}

.pwd-ehe-auth-notice-error {
    color: #d63638;
}

.pwd-ehe-auth-hint {
    font-size: 12px;
    opacity: 0.6;
    margin: -2px 0 0;
}

/* ----- Honeypot (hidden from real users, kept in tab order out of the way) ----- */
.pwd-ehe-auth-honeypot {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    height: 0;
    overflow: hidden;
}

.pwd-ehe-auth-submit[disabled] {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ----- Full-page widget layout ----- */
.pwd-ehe-login-page {
    max-width: 420px;
    margin: 0 auto;
    padding: 40px 0;
}

.pwd-ehe-login-page-heading {
    margin: 0 0 24px;
    font-size: 24px;
    text-align: center;
}

@media (max-width: 480px) {
    .pwd-ehe-login-page {
        padding: 24px 16px;
    }

    .pwd-ehe-auth-tab {
        font-size: 13px;
        padding: 10px 8px;
    }
}
