/* ============================================================
   Membership Access Control – Login Page Styles
   Styled to match Esquimalt Nation Members Area
   ============================================================ */

/* ── Full-page background ── */
html body.mac-login-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background:
        url('https://esq-members.pigfarm.ca/wp-content/uploads/2026/01/home-bg1.jpg')
        center bottom / cover no-repeat fixed;
    font-family: 'Segoe UI', Frutiger, 'Frutiger Linotype', 'Dejavu Sans',
                 'Helvetica Neue', Arial, sans-serif;
}

/* Hide theme header/footer on the login page so only the card shows */
body.mac-login-page #masthead,
body.mac-login-page .site-header,
body.mac-login-page header.header,
body.mac-login-page .site-footer,
body.mac-login-page footer,
body.mac-login-page #footer,
body.mac-login-page .main-navigation,
body.mac-login-page #site-navigation,
body.mac-login-page .entry-header,
body.mac-login-page .entry-title,
body.mac-login-page .breadcrumbs,
body.mac-login-page .page-header {
    display: none !important;
}

/* Push main content area to full-screen */
body.mac-login-page #page,
body.mac-login-page #content,
body.mac-login-page .site-content,
body.mac-login-page main,
body.mac-login-page .entry-content {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    max-width: none !important;
    width: 100% !important;
}

/* ── Centred wrapper ── */
.mac-login-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 16px;
    box-sizing: border-box;
}

/* ── Card ── */
.mac-login-box {
    background: #ffffff
        url('https://esq-members.pigfarm.ca/wp-content/uploads/2026/01/form-bg.png')
        center center / cover no-repeat;
    border-radius: 6px;
    box-shadow: 0px 12px 30px 0px rgba(0, 0, 0, 0.18);
    padding: 36px 40px 32px;
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
}

/* ── Logo ── */
.mac-login-logo {
    text-align: center;
    margin-bottom: 28px;
}

.mac-login-logo img {
    max-width: 353px;
    width: 100%;
    height: auto;
    display: inline-block;
}

/* ── Heading ── */
.mac-login-heading {
    font-size: 1.15rem;
    font-weight: 600;
    text-align: center;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
    margin: 0 0 6px;
}

/* ── Intro message ── */
.mac-login-message {
    text-align: center;
    color: #f0f0f0;
    font-size: 0.9rem;
    margin: 0 0 22px;
    line-height: 1.55;
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

/* ── Alert banners ── */
.mac-alert {
    border-radius: 5px;
    padding: 11px 14px;
    margin-bottom: 18px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.mac-alert-error {
    background: rgba(194, 74, 57, 0.15);
    border: 1px solid #c24a39;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.mac-alert-success {
    background: rgba(116, 146, 127, 0.2);
    border: 1px solid #74927f;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.mac-lockout {
    text-align: center;
}

/* ── Form fields ── */
.mac-field {
    margin-bottom: 18px;
}

.mac-field label {
    display: block;
    font-size: 14px;
    line-height: 19px;
    font-weight: 500;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
    margin-bottom: 6px;
}

.mac-field input[type="text"],
.mac-field input[type="number"] {
    width: 100%;
    height: 48px;
    padding: 0 14px 0 15px;
    border: 1px solid #C3C4C7;
    border-radius: 5px;
    font-size: 15px;
    color: #333;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    -moz-appearance: textfield;
}

.mac-field input[type="number"]::-webkit-inner-spin-button,
.mac-field input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.mac-field input[type="text"]:focus,
.mac-field input[type="number"]:focus {
    outline: none;
    border-color: #74927f;
    box-shadow: 0 0 0 3px rgba(116, 146, 127, 0.25);
}

/* ── CAPTCHA block ── */
.mac-captcha-field {
    background: rgba(255,255,255,0.08);
    border: 1px dashed rgba(255,255,255,0.35);
    border-radius: 5px;
    padding: 14px 14px 10px;
}

/* ── Attempts warning ── */
.mac-attempts-info {
    margin-bottom: 14px;
    min-height: 18px;
}

.mac-attempts-info small {
    color: #f9c74f;
    font-size: 0.8rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

/* ── Submit button ── */
.mac-btn {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 10px 16px;
    background: #52895f !important;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.02em;
    text-transform: none;
}

.mac-btn:hover {
    background: rgb(87, 112, 98);
}

.mac-btn:active {
    transform: scale(0.98);
}

/* ── Footer note ── */
.mac-footer-note {
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.75);
    margin-top: 22px;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* ── Logout link (shortcode) ── */
a.mac-logout-link {
    display: inline-block;
    padding: 6px 14px;
    background: rgb(116, 146, 127);
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #ffffff;
    text-decoration: none;
    transition: background 0.15s;
}

a.mac-logout-link:hover {
    background: rgb(87, 112, 98);
    color: #ffffff;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .mac-login-box {
        padding: 24px 18px 20px;
    }

    .mac-login-logo img {
        max-width: 260px;
    }
}
