/* ==========================================================================
   ONICastro Content Restrictor — Frontend Styles v1.1
   Solid colours only — no gradients
   Palette: Violet #7c3aed | Soft violet #a78bfa | Dark navy #12122a | White
   ========================================================================== */

/* ── 1. FADE OVERLAY ─────────────────────────────────────────────────────── */
.onicastro-restrictor-wrap {
    position: relative;
    margin-top: -80px;
    padding-top: 80px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.onicastro-restrictor-fade {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 110px;
    background: linear-gradient(to bottom, transparent 0%, #ffffff 90%);
    pointer-events: none;
    z-index: 1;
}

/* ── 2. CTA CARD — solid dark navy, NO gradients ─────────────────────────── */
.onicastro-restrictor-cta {
    position: relative;
    z-index: 2;
    background-color: #12122a;
    border: 1px solid #2e2e52;
    border-top: 3px solid #7c3aed;   /* solid single-colour accent line */
    border-radius: 20px;
    padding: 48px 40px;
    text-align: center;
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.5);
    margin: 0 auto 40px;
    max-width: 680px;
    box-sizing: border-box;
}

/* ── 3. LOCK ICON ────────────────────────────────────────────────────────── */
.onicastro-restrictor-lock {
    font-size: 2.6rem;
    margin-bottom: 14px;
    display: block;
    animation: oni-pulse 2.4s ease-in-out infinite;
}

@keyframes oni-pulse {
    0%,100% { transform: scale(1); }
    50%      { transform: scale(1.07); }
}

/* ── 4. TYPOGRAPHY — all white / light on dark background ────────────────── */
.onicastro-restrictor-title {
    font-size: clamp(1.35rem, 4vw, 1.85rem);
    font-weight: 800;
    color: #ffffff;           /* SOLID white — always legible */
    margin: 0 0 10px;
    line-height: 1.25;
}

.onicastro-restrictor-title .highlight {
    color: #a78bfa;           /* SOLID soft violet — no gradient */
}

.onicastro-restrictor-subtitle {
    font-size: 0.97rem;
    color: #c8c8e0;           /* SOLID light lavender-grey */
    line-height: 1.65;
    margin: 0 auto 26px;
    max-width: 500px;
}

.onicastro-restrictor-subtitle strong {
    color: #ffffff;
    font-weight: 700;
}

/* ── 5. BENEFITS GRID ────────────────────────────────────────────────────── */
.onicastro-benefits-grid {
    list-style: none;
    margin: 0 auto 30px;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 540px;
    text-align: left;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background-color: #1b1b38;   /* SOLID slightly lighter navy */
    border: 1px solid #2e2e52;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.86rem;
    color: #dcdcf0;              /* SOLID readable light text */
    line-height: 1.4;
}

.benefit-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── 6. BUTTONS — flat solid colours, NO gradients ───────────────────────── */
.onicastro-restrictor-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.oni-btn {
    display: inline-block;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 50px;
    padding: 14px 36px;
    transition: transform 0.18s, opacity 0.18s, background-color 0.18s;
    cursor: pointer;
    letter-spacing: 0.025em;
    border: none;
}

/* Primary — solid violet, no gradient */
.oni-btn-primary {
    background-color: #7c3aed;
    color: #ffffff !important;
    min-width: 220px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}

.oni-btn-primary:hover,
.oni-btn-primary:focus {
    background-color: #6d28d9;   /* slightly darker violet on hover */
    transform: translateY(-2px);
    color: #ffffff !important;
}

/* Secondary — outline ghost button */
.oni-btn-secondary {
    background-color: transparent;
    color: #a78bfa !important;
    border: 1.5px solid #7c3aed;
    font-size: 0.875rem;
    padding: 10px 24px;
}

.oni-btn-secondary:hover,
.oni-btn-secondary:focus {
    background-color: rgba(124, 58, 237, 0.12);
    color: #c4b5fd !important;
}

/* ── 7. RESPONSIVE ───────────────────────────────────────────────────────── */
@media (max-width: 540px) {
    .onicastro-benefits-grid  { grid-template-columns: 1fr; }
    .onicastro-restrictor-cta { padding: 36px 20px; }
    .oni-btn-primary          { min-width: 0; width: 100%; }
    .oni-btn-secondary        { width: 100%; text-align: center; }
}


/* ==========================================================================
   CUSTOM LOGIN FORM PAGE STYLES
   Rendered via [onicastro_login_form] shortcode
   ========================================================================== */

.oni-login-page-wrap {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.oni-login-card {
    background-color: #12122a;
    border: 1px solid #2e2e52;
    border-top: 3px solid #7c3aed;
    border-radius: 20px;
    padding: 48px 44px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

/* Brand logo area */
.oni-login-brand {
    text-align: center;
    margin-bottom: 28px;
}

.oni-login-logo {
    max-width: 160px;
    max-height: 70px;
    width: auto;
    height: auto;
    display: inline-block;
}

.oni-login-site-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

/* Headings */
.oni-login-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    margin: 0 0 6px;
}

.oni-login-subtitle {
    font-size: 0.9rem;
    color: #9090b0;
    text-align: center;
    margin: 0 0 28px;
}

/* Error notice */
.oni-login-error {
    background-color: rgba(225, 29, 72, 0.12);
    border: 1px solid rgba(225, 29, 72, 0.35);
    color: #fca5a5;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.875rem;
    margin-bottom: 20px;
    text-align: center;
}

/* Form fields */
.oni-login-form .oni-field {
    margin-bottom: 18px;
}

.oni-login-form label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #a0a0c0;
    margin-bottom: 6px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.oni-login-form input[type="text"],
.oni-login-form input[type="password"],
.oni-login-form input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    background-color: #1b1b38;
    border: 1px solid #2e2e52;
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.oni-login-form input[type="text"]:focus,
.oni-login-form input[type="password"]:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.oni-login-form input::placeholder {
    color: #5a5a80;
}

/* Remember me */
.oni-remember {
    margin-bottom: 22px;
    font-size: 0.875rem;
    color: #9090b0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.oni-remember input[type="checkbox"] {
    accent-color: #7c3aed;
    width: 16px;
    height: 16px;
}

.oni-remember label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.875rem !important;
    color: #9090b0 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-weight: 400 !important;
    margin: 0 !important;
}

/* Login submit button */
.oni-login-btn {
    width: 100%;
    padding: 14px;
    background-color: #7c3aed;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.18s, transform 0.18s;
    letter-spacing: 0.025em;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
    margin-bottom: 20px;
}

.oni-login-btn:hover,
.oni-login-btn:focus {
    background-color: #6d28d9;
    transform: translateY(-1px);
}

/* Links row below button */
.oni-login-links {
    text-align: center;
    font-size: 0.85rem;
    color: #6060a0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.oni-login-links a {
    color: #a78bfa;
    text-decoration: none;
}

.oni-login-links a:hover {
    color: #c4b5fd;
    text-decoration: underline;
}

.oni-login-links span {
    color: #3a3a60;
}

@media (max-width: 480px) {
    .oni-login-card { padding: 36px 24px; }
}
