/*
 * PPCP Password Protection Plugin Styles
 * Stili personalizzati per il tema Salient
 */

/* Container principale della pagina di protezione */
.ppcp-password-protection-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background-color: #D2302E;
}

/* Container del form */
.ppcp-form-container {
    background-color: #ffffff;
    border-radius: 25px;
    padding: 50px 45px;
    max-width: 550px;
    width: 100%;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

/* Effetto decorativo sul container */

/* Titolo principale */
.ppcp-form-container .ppcp-title {
    color: #333;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sottotitolo */
.ppcp-form-container .ppcp-subtitle {
    color: #666;
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 400;
}

/* Descrizione */
.ppcp-form-container .ppcp-description {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Messaggio di errore */
.ppcp-error-message {
    background-color: rgba(210, 48, 46, 0.1);
    border: 2px solid #D2302E;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 25px;
    color: #D2302E;
    font-weight: 500;
}

.ppcp-error-message p {
    margin: 0;
    font-size: 14px;
}

/* Form styling */
.ppcp-password-form {
    margin-top: 20px;
}

/* Gruppi del form */
.ppcp-form-group {
    margin-bottom: 25px;
    text-align: left;
}

.ppcp-form-group:last-child {
    margin-bottom: 0;
    text-align: center;
}

/* Label */
.ppcp-label {
    display: block;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Input password */
.ppcp-password-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    font-size: 16px;
    background-color: #fafafa;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.ppcp-password-input:focus {
    outline: none;
    border-color: #f8b131;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(248, 177, 49, 0.1);
}

.ppcp-password-input::placeholder {
    color: #999;
    font-style: italic;
}

/* Bottone submit - Stile CTA arancione */
.ppcp-submit-btn {
    background: #d2302e;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 18px 45px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 25px rgba(248, 177, 49, 0.4);
    min-width: 250px;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ppcp-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.ppcp-submit-btn:hover::before {
    left: 100%;
}

.ppcp-submit-btn::after {
    content: '→';
    font-size: 18px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.ppcp-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(248, 177, 49, 0.5);
    background: #d2302e;
}

.ppcp-submit-btn:hover::after {
    transform: translateX(5px);
}

.ppcp-submit-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(248, 177, 49, 0.4);
}

/* Responsive design */
@media (max-width: 768px) {
    .ppcp-password-protection-page {
        padding: 30px 15px;
        min-height: 70vh;
    }
    
    .ppcp-form-container {
        padding: 35px 30px;
        border-radius: 20px;
        max-width: 90%;
    }
    
    .ppcp-form-container .ppcp-title {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .ppcp-password-input {
        padding: 14px 18px;
        font-size: 15px;
    }
    
    .ppcp-submit-btn {
        padding: 16px 35px;
        font-size: 15px;
        min-width: 220px;
    }
}

@media (max-width: 480px) {
    .ppcp-password-protection-page {
        padding: 20px 10px;
        min-height: 60vh;
    }
    
    .ppcp-form-container {
        padding: 30px 25px;
        max-width: 95%;
        border-radius: 18px;
    }
    
    .ppcp-form-container .ppcp-title {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .ppcp-submit-btn {
        width: 100%;
        min-width: auto;
        padding: 16px 20px;
        font-size: 14px;
    }
    
    .ppcp-submit-btn::after {
        font-size: 16px;
    }
}

/* Animazioni */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ppcp-form-container {
    animation: fadeInUp 0.6s ease-out;
}

/* Focus states per accessibilità */
.ppcp-submit-btn:focus {
    outline: 3px solid rgba(248, 177, 49, 0.5);
    outline-offset: 2px;
}

.ppcp-password-input:focus {
    outline: none;
}

/* Stati di caricamento (opzionale per future implementazioni) */
.ppcp-submit-btn.loading {
    position: relative;
    color: transparent;
}

.ppcp-submit-btn.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 