/* ═══════════════════════════════════════
   OWFR Password Protected Page Styles
   ═══════════════════════════════════════ */

/* ── Wrapper: full-page centered layout ── */
.owfr-pp-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 2rem 1rem;
    font-family: inherit;
}

/* ── Card ── */
.owfr-pp-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
    padding: 2.5rem 2rem 2rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.owfr-pp-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Error state */
.owfr-pp-card.owfr-pp-error {
    border-color: rgba(200, 0, 0, 0.2);
}

/* ── Lock Icon ── */
.owfr-pp-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, rgba(0, 107, 63, 0.1) 0%, rgba(0, 107, 63, 0.05) 100%);
    border-radius: 50%;
}

.owfr-pp-icon svg {
    width: 30px;
    height: 30px;
    color: #006B3F;
}

/* ── Heading & description ── */
.owfr-pp-title {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin: 0 0 0.5rem 0 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.01em !important;
}

.owfr-pp-desc {
    font-size: 0.9rem !important;
    color: #666 !important;
    line-height: 1.55 !important;
    margin: 0 0 1.5rem 0 !important;
}

/* ── Error message ── */
.owfr-pp-error-msg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    background: rgba(200, 0, 0, 0.06);
    border: 1px solid rgba(200, 0, 0, 0.15);
    color: #c00;
    font-size: 0.85rem;
    font-weight: 600;
    animation: owfrShake 0.4s ease;
}

@keyframes owfrShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* ── Form ── */
.owfr-pp-form {
    text-align: left;
}

.owfr-pp-field {
    margin-bottom: 1rem;
}

.owfr-pp-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.4rem;
}

.owfr-pp-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.owfr-pp-input {
    width: 100%;
    padding: 0.7rem 2.75rem 0.7rem 0.9rem;
    border: 1.5px solid #d0d0d0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #1a1a1a;
    background: #fafafa;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.owfr-pp-input:focus {
    outline: none;
    border-color: #006B3F;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 107, 63, 0.12);
}

.owfr-pp-input::placeholder {
    color: #aaa;
    font-weight: 400;
}

/* Error state input */
.owfr-pp-error .owfr-pp-input {
    border-color: rgba(200, 0, 0, 0.35);
}

.owfr-pp-error .owfr-pp-input:focus {
    border-color: #c00;
    box-shadow: 0 0 0 3px rgba(200, 0, 0, 0.1);
}

/* ── Show/Hide toggle ── */
.owfr-pp-toggle-pw {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color 0.15s;
}

.owfr-pp-toggle-pw:hover {
    color: #006B3F;
}

/* ── Submit button ── */
.owfr-pp-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: #006B3F;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 107, 63, 0.25);
}

.owfr-pp-submit:hover {
    background: #005a34;
    box-shadow: 0 4px 16px rgba(0, 107, 63, 0.35);
    transform: translateY(-1px);
}

.owfr-pp-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 107, 63, 0.2);
}

/* ── Hint text ── */
.owfr-pp-hint {
    font-size: 0.78rem !important;
    color: #999 !important;
    margin: 1.25rem 0 0 0 !important;
    line-height: 1.5 !important;
}

/* ── Branding (inside card, top) ── */
.owfr-pp-branding {
    text-align: center;
    margin-bottom: 1.25rem;
}

.owfr-pp-logo {
    max-width: 260px;
    height: auto;
    opacity: 1;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .owfr-pp-card {
        padding: 2rem 1.5rem 1.5rem;
        border-radius: 12px;
    }

    .owfr-pp-title {
        font-size: 1.2rem !important;
    }

    .owfr-pp-icon {
        width: 56px;
        height: 56px;
    }

    .owfr-pp-icon svg {
        width: 26px;
        height: 26px;
    }
}
