/* ─────────────────────────────────────────────
   Page Password Protect — Frontend Gate Styles
   ───────────────────────────────────────────── */

.ppp-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ppp-gate {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ppp-gate__card {
    width: 100%;
    max-width: 420px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow:
        0 25px 60px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.1);
    text-align: center;
    animation: ppp-fade-in .4s ease-out;
}

@keyframes ppp-fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Lock icon */
.ppp-gate__lock {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: #fff;
    box-shadow: 0 8px 24px rgba(59,130,246,.4);
}
.ppp-gate__lock svg {
    width: 32px;
    height: 32px;
}

/* Titles */
.ppp-gate__title {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,.5);
    text-transform: uppercase;
    letter-spacing: .08em;
}
.ppp-gate__subtitle {
    margin: 0 0 20px;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

/* Message */
.ppp-gate__message {
    margin: 0 0 24px;
    font-size: 14px;
    color: rgba(255,255,255,.6);
    line-height: 1.6;
}

/* Error */
.ppp-gate__error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(239,68,68,.15);
    border: 1px solid rgba(239,68,68,.3);
    border-radius: 8px;
    color: #fca5a5;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    animation: ppp-shake .3s ease;
}
@keyframes ppp-shake {
    0%,100% { transform: translateX(0); }
    25%      { transform: translateX(-6px); }
    75%      { transform: translateX(6px); }
}

/* Form */
.ppp-gate__form { margin-bottom: 16px; }

.ppp-gate__input-wrap {
    position: relative;
    margin-bottom: 14px;
}

.ppp-gate__input-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: rgba(255,255,255,.3);
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.ppp-gate__input {
    width: 100%;
    padding: 13px 44px 13px 42px;
    background: rgba(255,255,255,.08);
    border: 1.5px solid rgba(255,255,255,.15);
    border-radius: 10px;
    font-size: 15px;
    color: #fff;
    box-sizing: border-box;
    transition: border-color .2s, background .2s, box-shadow .2s;
    outline: none;
}
.ppp-gate__input::placeholder { color: rgba(255,255,255,.3); }
.ppp-gate__input:focus {
    border-color: #3b82f6;
    background: rgba(255,255,255,.1);
    box-shadow: 0 0 0 3px rgba(59,130,246,.25);
}

.ppp-gate__eye {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,.3);
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color .15s;
}
.ppp-gate__eye:hover { color: rgba(255,255,255,.7); }

/* Submit */
.ppp-gate__submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .15s, transform .1s, box-shadow .15s;
    box-shadow: 0 4px 16px rgba(59,130,246,.35);
}
.ppp-gate__submit:hover {
    opacity: .9;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59,130,246,.45);
}
.ppp-gate__submit:active { transform: translateY(0); }

/* Back link */
.ppp-gate__back { margin: 0; }
.ppp-gate__back a {
    font-size: 13px;
    color: rgba(255,255,255,.4);
    text-decoration: none;
    transition: color .15s;
}
.ppp-gate__back a:hover { color: rgba(255,255,255,.7); }

/* Logout button (shortcode) */
.ppp-logout-btn {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(239,68,68,.1);
    border: 1px solid rgba(239,68,68,.3);
    border-radius: 6px;
    color: #dc2626;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s;
}
.ppp-logout-btn:hover { background: rgba(239,68,68,.2); }
