/* ═══════════════════════════════════════════════════════════════
   Zerest Brews — Custom Login Page
   login.css
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&family=Inter:wght@300;400;500&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Page shell ── */

html, body {
    height: 100%;
    background: #0f0b07;
    -webkit-font-smoothing: antialiased;
}

body.login {
    background: #0f0b07;
    padding: 0;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

/* ── Alert bar ── */

#zb-alert {
    position: relative;
    z-index: 100;
    background: rgba(200, 169, 110, 0.10);
    border-bottom: 0.5px solid rgba(200, 169, 110, 0.25);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #c8a96e;
    letter-spacing: 0.03em;
}

#zb-alert svg {
    flex-shrink: 0;
    opacity: 0.8;
}

#zb-alert span {
    flex: 1;
}

#zb-alert-close {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(232, 230, 224, 0.35);
    font-size: 20px;
    line-height: 1;
    padding: 0;
    transition: color 0.15s;
}

#zb-alert-close:hover {
    color: #e8e6e0;
}

/* ── Full-screen split layout ── */

.zb-login-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    position: relative;
    padding-top: 45px; /* account for fixed alert */
}

/* ── Left half — Zerest Brews ── */

.zb-half-left {
    background: #0f0b07;
    position: relative;
    padding: 60px 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

/* ── Right half — Mel's Music ── */

.zb-half-right {
    background: #0d0d10;
    position: relative;
    padding: 60px 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

/* ── Decorative SVG backgrounds ── */

.zb-deco {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ── Brand block — top of each half ── */

.zb-brand {
    position: relative;
    z-index: 2;
}

.zb-eyebrow {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    font-weight: 500;
    color: #c8965a;
    margin-bottom: 12px;
}

.zb-half-right .zb-eyebrow {
    color: #9b8bb4;
    text-align: right;
}

.zb-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 700;
    line-height: 1.1;
    color: #fdf4e8;
}

.zb-half-right .zb-name {
    text-align: right;
    color: #f0eaf8;
}

.zb-name em {
    font-style: italic;
    color: #c8965a;
}

.zb-half-right .zb-name em {
    color: #c4b8d8;
}

/* ── Tagline — bottom of each half ── */

.zb-tagline {
    position: relative;
    z-index: 2;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(200, 150, 90, 0.6);
}

.zb-half-right .zb-tagline {
    text-align: right;
    color: rgba(155, 139, 180, 0.6);
}

/* ── Centre card ── */

#login {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important;
    z-index: 50;
    width: 320px;
    max-width: calc(100vw - 40px);
    margin: 0 !important;
    padding: 0 !important;
    background: transparent;
}

/* WordPress wraps the form in #login — we style the inner card */

.zb-card {
    background: #fdf8f2;
    border-radius: 16px;
    padding: 36px 32px 28px;
    border: 0.5px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.06),
        0 24px 64px rgba(0,0,0,0.45),
        0 4px 16px rgba(0,0,0,0.2);
}

/* ── Card header ── */

.zb-card-eyebrow {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #b08d57;
    font-weight: 500;
    text-align: center;
    margin-bottom: 6px;
}

.zb-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: #1c1109;
    text-align: center;
    margin-bottom: 28px;
    line-height: 1.2;
}

.zb-card-title em {
    font-style: italic;
    color: #7c4a1a;
}

/* Remember Me Checkbox */
.zb-remember {
    margin: 0 0 1.25rem;
}

.zb-remember-label {
    display: flex!important;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--zb-muted, #888);
    user-select: none;
}

/* Hide the real checkbox visually but keep it accessible */
.zb-remember-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Custom box */
.zb-remember-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    min-width: 16px;
    border: 1.5px solid #ccc;
    border-radius: 3px;
    background: transparent;
    transition: border-color 0.15s, background 0.15s;
}

.zb-remember-box svg {
    width: 12px;
    height: 12px;
    opacity: 0;
    transition: opacity 0.15s;
    color: #fff;
}

/* Checked state */
.zb-remember-label input[type="checkbox"]:checked ~ .zb-remember-box {
    background: #c8965a;
    border-color: #c8965a;
}

.zb-remember-label input[type="checkbox"]:checked ~ .zb-remember-box svg {
    opacity: 1;
}

/* Focus ring for keyboard nav */
.zb-remember-label input[type="checkbox"]:focus-visible ~ .zb-remember-box {
    outline: 2px solid #c8965a;
    outline-offset: 2px;
}

/* ── Override WordPress form styles ── */

body.login #login h1 { display: none; }

body.login #loginform {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.login #login #loginform p {
    margin-bottom: 16px;
}

body.login #loginform label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: #9a7a56;
    font-weight: 500;
    margin-bottom: 6px;
}

body.login #loginform input[type="text"],
body.login #loginform input[type="password"] {
    width: 100%;
    padding: 10px 12px 10px 38px;
    background: #ffffff;
    border: 1px solid #e0cdb6;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #1c1109;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    height: auto;
    box-shadow: none;
    -webkit-appearance: none;
}

body.login #loginform input[type="text"]:focus,
body.login #loginform input[type="password"]:focus {
    border-color: #b08d57;
    box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.12);
}

body.login #loginform input[type="text"]::placeholder,
body.login #loginform input[type="password"]::placeholder {
    color: #c4a882;
}

/* Input icons via background-image */

.zb-field-wrap {
    position: relative;
}

.zb-field-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #b08d57;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.zb-field-icon svg {
    width: 15px;
    height: 15px;
    stroke: #b08d57;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Show/hide password toggle */

.zb-eye-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #b08d57;
    display: flex;
    align-items: center;
    line-height: 1;
}

.zb-eye-btn svg {
    width: 15px;
    height: 15px;
    stroke: #c4a882;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.15s;
}

.zb-eye-btn:hover svg {
    stroke: #7c4a1a;
}

/* Forgot password link */

body.login #login #nav {
    margin: 0;
    padding: 0;
    text-align: right;
}

body.login #login #nav a {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #9a7a56;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}

body.login #login #nav a:hover {
    color: #7c4a1a;
}

/* ── Submit button ── */

body.login #loginform #wp-submit {
    width: 100%;
    padding: 13px;
    border-radius: 8px;
    border: none;
    background: #1c1109;
    color: #fdf4e8;
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    font-weight: 700;
    font-style: italic;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: background 0.15s;
    margin-top: 20px;
    height: auto;
    -webkit-appearance: none;
    box-shadow: none;
    text-shadow: none;
}

body.login #loginform #wp-submit:hover {
    background: #3d1f08;
}

/* ── Dual dot footer ── */

.zb-card-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 20px;
}

.zb-pip {
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

.zb-pip-coffee { background: #c8965a; opacity: 0.55; }
.zb-pip-sep    { background: #c0b4a8; opacity: 0.25; }
.zb-pip-music  { background: #9b8bb4; opacity: 0.55; }

/* ── WordPress error / message notices ── */

body.login #login_error,
body.login .message {
    position: fixed;
    top: 56px;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    max-width: calc(100vw - 40px);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    padding: 10px 14px;
    margin: 0;
    border-left: none;
    z-index: 200;
}

body.login #login_error {
    background: rgba(179, 85, 74, 0.12);
    border: 0.5px solid rgba(179, 85, 74, 0.35);
    color: #c0504a;
}

body.login .message {
    background: rgba(176, 141, 87, 0.1);
    border: 0.5px solid rgba(176, 141, 87, 0.3);
    color: #b08d57;
}

/* ── Remove WordPress default chrome ── */

body.login #backtoblog,
body.login #login > p:last-child {
    display: none !important;
}

/* ── Responsive ── */

@media (max-width: 680px) {
    .zb-login-page {
        grid-template-columns: 1fr;
        min-height: 100vh;
    }

    .zb-half-right {
        display: none;
    }

    .zb-half-left {
        min-height: 100vh;
    }

    #login {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) !important;
        width: calc(100vw - 40px);
    }
}