/* =============================================================
   Productside Connect — Login Overlay
   Theme values are injected as CSS custom properties by PHP.
   ============================================================= */

body { overflow: hidden !important; }

#psc-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--psc-overlay-bg, rgba(0,0,0,0.88));
    backdrop-filter: var(--psc-overlay-blur, none);
    -webkit-backdrop-filter: var(--psc-overlay-blur, none);
    font-family: var(--psc-font, system-ui, -apple-system, sans-serif);
    box-sizing: border-box;
}

#wpadminbar,
body.admin-bar #psc-overlay { top: 32px; }

/* ── Card ─────────────────────────────────────────────────── */

#psc-card {
    background: var(--psc-card-bg, #ffffff);
    border-radius: var(--psc-card-radius, 16px);
    padding: 52px 44px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 24px 80px rgba(0,0,0,0.25);
    text-align: center;
    box-sizing: border-box;
}

/* ── Title ────────────────────────────────────────────────── */

#psc-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.2;
    color: var(--psc-title-color, #111111);
    margin: 0 0 16px;
    text-transform: uppercase;
}

/* ── Subtitle ─────────────────────────────────────────────── */

#psc-subtitle {
    font-size: 14px;
    line-height: 1.65;
    color: var(--psc-body-color, #666666);
    margin: 0 0 32px;
}

/* ── Error ────────────────────────────────────────────────── */

#psc-error {
    background: #fff2f2;
    border: 1px solid #ffd0d0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #c0392b;
    margin: 0 0 20px;
}

/* ── Form ─────────────────────────────────────────────────── */

#psc-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#psc-password {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--psc-input-border, #e0e0e0);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: var(--psc-body-color, #333333);
    background: transparent;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s;
    box-sizing: border-box;
    text-align: center;
}

#psc-password::placeholder { color: #aaaaaa; }

#psc-password:focus {
    border-color: var(--psc-input-focus, #111111);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.07);
}

#psc-submit {
    width: 100%;
    padding: 15px;
    background: var(--psc-btn-bg, #111111);
    color: var(--psc-btn-color, #ffffff);
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: opacity 0.18s, transform 0.12s;
}

#psc-submit:hover  { opacity: 0.85; }
#psc-submit:active { transform: scale(0.97); }

/* ── Logout shortcode link ────────────────────────────────── */

.psc-logout-link { color: #888; font-size: 13px; text-decoration: underline; }
.psc-logout-link:hover { color: #444; }

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 500px) {
    #psc-card  { padding: 36px 22px; }
    #psc-title { font-size: 22px; }
}
