/* ── Auth Page (shortcode) ── */

.swp_auth_page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 24px;
}

/* Full-page login mode */
.swp_auth_fullpage {
    background: var(--accent1);
    padding: 24px;
    flex: 1 1 auto;
    box-sizing: border-box;
}

/* Make WPBakery wrapper chain fill height when fullpage login is used */
.vc_row:has(.swp_auth_fullpage) {
    display: flex !important;
    flex-direction: column;
}
.vc_row:has(.swp_auth_fullpage) > .vc_column_container,
.vc_row:has(.swp_auth_fullpage) .vc_column-inner,
.vc_row:has(.swp_auth_fullpage) .wpb_wrapper,
.vc_row:has(.swp_auth_fullpage) .wpb_text_column,
.vc_row:has(.swp_auth_fullpage) .vc_column_text {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.swp_auth_fullpage .swp_auth_card {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.swp_auth_fullpage .swp_auth_logo i {
    color: var(--accent1);
}

.swp_auth_fullpage .swp_auth_avatar i {
    color: var(--accent1);
}

.swp_auth_page .swp_auth_card {
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.swp_auth_page .swp_auth_btn_primary {
    text-decoration: none;
}

/* ── Auth Popup (type: "auth") ── */

/* The .swp_popup base provides the dark overlay; auth just adds flex centering + blur */
.swp_popup[style*="display: flex"] {
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.swp_auth_backdrop {
    display: none;
}

.swp_auth_card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 36px 40px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    text-align: center;
    animation: swp_auth_fadein 0.2s ease-out;
}

@keyframes swp_auth_fadein {
    from { opacity: 0; transform: scale(0.95) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.swp_auth_close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 22px;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.15s;
}

.swp_auth_close:hover {
    color: #333;
}

.swp_auth_logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #1d2327;
    margin-bottom: 20px;
}

.swp_auth_logo i {
    font-size: 24px;
    color: var(--accent1);
}

.swp_auth_avatar {
    margin-bottom: 8px;
}

.swp_auth_avatar i {
    font-size: 56px;
    color: var(--accent1);
    line-height: 1;
}

.swp_auth_title {
    font-size: 20px;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 4px;
}

.swp_auth_sub {
    font-size: 13px;
    color: #8c8f94;
    margin: 0 0 24px;
}

.swp_auth_content {
    text-align: center;
}

.swp_auth_field {
    margin-bottom: 14px;
    text-align: left;
}

.swp_auth_field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #50575e;
    margin-bottom: 5px;
}

.swp_auth_input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    color: #1d2327;
    background: #fff;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.swp_auth_input:focus {
    border-color: var(--accent1);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.swp_auth_remember {
    margin-bottom: 20px;
}

.swp_auth_remember label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 400;
    color: #50575e;
    cursor: pointer;
}

.swp_auth_remember input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #dcdcde;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s;
}

.swp_auth_remember input[type="checkbox"]:checked {
    background: var(--accent1);
    border-color: var(--accent1);
}

.swp_auth_remember input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.swp_auth_btn_primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 11px 0 !important;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--accent1);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: filter 0.15s, box-shadow 0.15s;
    margin-bottom: 10px;
}

.swp_auth_btn_primary:hover {
    background: var(--accent2);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.swp_auth_btn_secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 11px 16px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #50575e;
    background: #f5f5f5;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}

.swp_auth_btn_secondary:hover {
    background: #eaeaea;
}

.swp_auth_forgot {
    margin-top: 16px;
}

.swp_auth_forgot a {
    font-size: 13px;
    color: #8c8f94;
    text-decoration: none;
    transition: color 0.15s;
}

.swp_auth_forgot a:hover {
    color: var(--accent1);
}

/* Forgot password messages */
.swp_auth_msg {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 14px;
    text-align: left;
}

.swp_auth_msg i {
    margin-right: 4px;
}

.swp_auth_msg_success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.swp_auth_msg_error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .swp_auth_card {
        margin: 16px;
        padding: 28px 24px;
    }
}

/* ── Legacy classes (kept for other uses) ── */

.swp_loginform {
    display: inline-block;
}

.swp_poplogin {
    margin: 0;
}

.swp_logout {
    margin-bottom: 10px;
}

.swp_logoutlink {
    color: inherit;
}

.swp_login_link {
    color: inherit;
}

.swp_lostpassword {
    color: #000000;
}
