/* Password Protected Page Template Styles */

.password-protected-wrapper {    
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    background-color: #0a1b2d;
    width: 100%;
    min-height: 100vh;
    padding: 60px 24px;
}

.password-protected-container {
    background-color: #FFFFFF;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    margin-top: 20vh;
    padding: 48px;
    border-radius: 24px;
    box-shadow: 0 4px 16px rgba(149, 155, 189, 0.25);
}

.lock-icon {
    display: block;
    width: 56px;
    height: 56px;
    background-color: #DFF1FF;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 18px; 
}

/* Password Form Container */
.password-protected-form-container {
    margin-top: 4px;
}

/* Password Form Styles */
.password-protected-form-container .post-password-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.password-protected-form-container .post-password-form p {
    font-family: 'Inter', sans-serif;
    color: #425466;
    font-size: 16px;
    line-height: 1.5em;
    margin: 0;
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.password-protected-form-container .post-password-form p:first-child {
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 500;
    color: #0a2540;        
    display: block;    
    text-align: left;
}

.password-protected-form-container .post-password-form label {
    font-family: 'Inter', sans-serif;
    text-align: left;
    color: #0a2540;
    font-size: 16px;
    font-weight: 500;    
    display: block;
}

.password-protected-form-container .post-password-form input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #0a2540;
    background-color: #ffffff;
    border: 1px solid #E4E9ED;
    border-radius: 6px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    margin-top: 8px;
}

.password-protected-form-container .post-password-form input[type="password"]:focus {
    outline: none;
    border-color: #008BD1;
    box-shadow: 0 0 0 3px rgba(0, 139, 209, 0.1);
}

.password-protected-form-container .post-password-form input[type="password"]::placeholder {
    color: #8A8B8C;
}

.password-protected-form-container .post-password-form .password-submit-button,
.password-protected-form-container .post-password-form button[type="submit"],
.password-protected-form-container .post-password-form input[type="submit"] {
    padding: 12px 24px;
    background-color: #133156;
    color: #ffffff;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    line-height: 1.5;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
}

.password-protected-form-container .post-password-form .password-submit-button:hover,
.password-protected-form-container .post-password-form button[type="submit"]:hover,
.password-protected-form-container .post-password-form input[type="submit"]:hover {
    background-color: #0a2540;
    transform: translateY(-1px);
}

.password-protected-form-container .post-password-form .password-submit-button:active,
.password-protected-form-container .post-password-form button[type="submit"]:active,
.password-protected-form-container .post-password-form input[type="submit"]:active {
    transform: translateY(0);
}

.password-protected-form-container .post-password-form .password-submit-button:focus,
.password-protected-form-container .post-password-form button[type="submit"]:focus,
.password-protected-form-container .post-password-form input[type="submit"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(19, 49, 86, 0.2);
}
p{
    padding-bottom: 0;
}

/* Error Message Styling */
.password-protected-form-container .password-error-message,
.password-protected-form-container .error-message {
    color: #EF5555 !important;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    margin: 12px 0;
    padding: 12px;
    background-color: #FFF5F5;
    border: 1px solid #FECACA;
    border-radius: 6px;
    text-align: center;
    width: 100%;
    max-width: 400px;
}

/* Tablet Styles */
@media (max-width: 980px) {
    .password-protected-wrapper {
        padding: 40px 16px;
    }
    
    .password-protected-container {
        padding: 40px 32px;
    }
    
    .password-protected-title {
        font-size: 28px;
    }
}

/* Mobile Styles */
@media (max-width: 576px) {
    .password-protected-wrapper {
        padding: 24px 8px;
    }
    
    .password-protected-container {
        padding: 32px 24px;
    }
    
    .password-protected-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .password-protected-form-container .post-password-form input[type="password"] {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .password-protected-form-container .post-password-form .password-submit-button,
    .password-protected-form-container .post-password-form button[type="submit"],
    .password-protected-form-container .post-password-form input[type="submit"] {
        width: 100%;
        font-size: 16px;
    }
}

