/**
 * Password Protection Page Styles
 * Modern password protection interface
 */

.password-protection-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-image: url('../images/passwordprotected.webp');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    padding: 120px clamp(30px, 5vw, 60px) 80px clamp(30px, 5vw, 60px); /* Add top padding for fixed navbar, same padding as navbar */
}

.password-protection-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #000000, rgba(0, 0, 0, 0));
    z-index: 1;
    pointer-events: none;
}

.password-protection-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 60px;
    position: relative;
    z-index: 2;
}

.password-protection-content {
    text-align: left;
    color: #ffffff;
    width: 100%;
    max-width: 100%;
}

.password-protection-title {
    font-family: Lexend, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 42px;
    line-height: 110%;
    letter-spacing: 0;
    margin: 0 0 24px 0;
    color: #ffffff;
    max-width: 474px;
    orphans: 0 !important;
    widows: 0 !important;
    text-wrap: normal !important;
    hyphens: none !important;
    -webkit-hyphens: none !important;
    -moz-hyphens: none !important;
    -ms-hyphens: none !important;
}

.password-protection-description {
    font-family: Lexend, sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0;
    margin: 0 0 40px 0;
    color: #ffffff;
    opacity: 0.9;
}

/* Password Form Styling */
.password-protection-content form,
.password-protection-content .post-password-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.password-protection-content form label,
.password-protection-content .post-password-form label {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
}

.password-protection-content input[type="password"],
.password-protection-content .post-password-form input[type="password"] {
    width: 100% !important;
    max-width: 363px !important;
    padding: 11px 20px !important;
    background: #FFFFFF33 !important;
    font-family: Lexend, sans-serif !important;
    font-weight: 300 !important;
    font-style: normal !important;
    font-size: 18px !important;
    line-height: 100% !important;
    letter-spacing: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 500px !important;
    color: #ffffff !important;
    outline: none !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    text-align: left !important;
}

.password-protection-content input[type="password"]:focus,
.password-protection-content .post-password-form input[type="password"]:focus {
    border-color: #00ff88 !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3) !important;
}

.password-protection-content input[type="password"]::placeholder,
.password-protection-content .post-password-form input[type="password"]::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.password-protection-content input[type="submit"],
.password-protection-content .post-password-form input[type="submit"] {
    width: 100% !important;
    max-width: 363px !important;
    padding: 16px 48px !important;
    font-family: Lexend, sans-serif !important;
    font-weight: 400 !important;
    font-style: normal !important;
    font-size: 20px !important;
    line-height: 100% !important;
    letter-spacing: 0% !important;
    text-align: center !important;
    background: #2ECC71 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 500px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: none !important;
    box-sizing: border-box !important;
}

.password-protection-content input[type="submit"]:hover,
.password-protection-content .post-password-form input[type="submit"]:hover {
    background: #2ECC71 !important;
}

.password-protection-content input[type="submit"]:active,
.password-protection-content .post-password-form input[type="submit"]:active {
    background: #2ECC71 !important;
}

/* Divider */
.password-protection-divider {
    width: 100% !important;
    max-width: 363px !important;
    text-align: center;
    margin: 24px 0;
    color: #ffffff;
    font-family: Lexend, sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0%;
    opacity: 0.7;
    box-sizing: border-box;
}

.password-protection-divider span {
    position: relative;
    padding: 0 16px;
}

.password-protection-divider span::before,
.password-protection-divider span::after {
    display: none;
}


/* Copyright */
.password-protection-copyright {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: clamp(1.5rem, 3vw, 3rem) 60px;
    font-family: Lexend, sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 22px;
    color: #FFFFFF;
    z-index: 2;
}

/* Back to Homepage Button */
.password-protection-back-button {
    display: block;
    width: 100%;
    max-width: 363px;
    padding: 16px 48px;
    font-family: Lexend, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    color: #FFFFFF;
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid #2ECC70;
    border-radius: 500px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.password-protection-back-button:hover {
    background: rgba(46, 204, 113, 0.15);
    border-color: #2ECC70;
}

.password-protection-back-button:active {
    background: rgba(46, 204, 113, 0.15);
    border-color: #2ECC70;
}

/* Error Message Styling */
.password-protection-content .error-message,
.password-protection-content .post-password-form .error,
.password-protection-content .post-password-form .notice,
.password-protection-content .post-password-form .password-error {
    color: #ff4444 !important;
    background: rgba(255, 68, 68, 0.1) !important;
    border: 1px solid rgba(255, 68, 68, 0.3) !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    margin-bottom: 20px !important;
    margin-top: 0 !important;
    font-size: 14px !important;
    font-family: Lexend, sans-serif !important;
    font-weight: 400 !important;
    width: 100% !important;
    max-width: 363px !important;
    box-sizing: border-box !important;
}

/* Password error message styling */
.password-protection-content .password-error-message {
    color: #ff4444 !important;
    background: rgba(255, 68, 68, 0.1) !important;
    border: 1px solid rgba(255, 68, 68, 0.3) !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    margin-bottom: 20px !important;
    margin-top: 0 !important;
    font-size: 14px !important;
    font-family: Lexend, sans-serif !important;
    font-weight: 400 !important;
    width: 100% !important;
    max-width: 363px !important;
    box-sizing: border-box !important;
}

.password-protection-content .password-error-message p {
    margin: 0 !important;
    color: #ff4444 !important;
    font-family: Lexend, sans-serif !important;
    font-weight: 400 !important;
    font-size: 14px !important;
}

/* WordPress password error message */
.post-password-form .password-error,
.post-password-form .notice-error,
.post-password-form p.error,
.post-password-form div.error {
    color: #ff4444 !important;
    background: rgba(255, 68, 68, 0.1) !important;
    border: 1px solid rgba(255, 68, 68, 0.3) !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    margin-bottom: 20px !important;
    margin-top: 0 !important;
    font-size: 14px !important;
    font-family: Lexend, sans-serif !important;
    font-weight: 400 !important;
    width: 100% !important;
    max-width: 363px !important;
    box-sizing: border-box !important;
}

/* Responsive Design */
@media (max-width: 1060px) {
    .password-protection-wrapper {
        padding-left: clamp(30px, 5vw, 60px);
        padding-right: clamp(30px, 5vw, 60px);
    }
    .password-protection-container {
        padding-left: 0;
        padding-right: 0;
    }
    .password-protection-copyright {
        padding-left: clamp(30px, 5vw, 60px);
        padding-right: clamp(30px, 5vw, 60px);
    }
}

@media (max-width: 640px) {
    .password-protection-wrapper {
        padding: 80px 30px 40px 30px;
        min-height: 100vh;
        height: 100vh;
    }
    
    .password-protection-container {
        padding: 0;
    }
    
    .password-protection-title {
        font-size: 28px;
    }
    
    .password-protection-description {
        font-size: 16px;
    }
    
    .password-protection-content input[type="password"],
    .password-protection-content input[type="submit"],
    .password-protection-back-button {
        padding: 14px 32px;
        font-size: 15px;
    }
    
    .password-protection-copyright {
        padding: clamp(1.5rem, 3vw, 3rem) 30px;
        font-size: 14px;
        line-height: 22px;
    }
}
