/* ================================================================
   Post & Page Password Protect — Frontend Gate Styles
================================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&display=swap');

.ppp-gate-wrap {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    font-family: 'DM Sans', -apple-system, sans-serif;
}

.ppp-gate {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
    padding: 48px 40px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    animation: pppSlideUp .4s ease;
}

@keyframes pppSlideUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ppp-gate__icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.ppp-gate__title {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 8px;
}

.ppp-gate__sub {
    font-size: 14px;
    color: #687094;
    margin: 0 0 28px;
    line-height: 1.6;
}

.ppp-error {
    background: #fff0f1;
    border: 1px solid #ffcdd2;
    color: #d32f2f;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 20px;
    text-align: left;
}

.ppp-gate__field {
    position: relative;
    margin-bottom: 16px;
}

.ppp-gate__input {
    width: 100%;
    border: 2px solid #e8ecf5;
    border-radius: 10px;
    padding: 13px 46px 13px 16px;
    font-family: inherit;
    font-size: 15px;
    color: #1a1a2e;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
    background: #f7f9fc;
}
.ppp-gate__input:focus {
    border-color: #6c7cff;
    box-shadow: 0 0 0 4px rgba(108,124,255,0.15);
    background: #fff;
}

.ppp-gate__eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #aab0cc;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color .2s;
}
.ppp-gate__eye:hover { color: #6c7cff; }

.ppp-gate__submit {
    width: 100%;
    background: #6c7cff;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 20px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 16px rgba(108,124,255,0.3);
}
.ppp-gate__submit:hover {
    background: #5b6ce8;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(108,124,255,0.4);
}
.ppp-gate__arrow { font-size: 16px; }

.ppp-gate__back {
    display: inline-block;
    margin-top: 20px;
    font-size: 13px;
    color: #aab0cc;
    text-decoration: none;
    transition: color .2s;
}
.ppp-gate__back:hover { color: #6c7cff; }

@media (max-width: 480px) {
    .ppp-gate { padding: 36px 24px; }
}
