/**
 * Password Protection Overlay Styles
 */

#password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.5s ease;
}

#password-overlay.active {
    display: flex;
}

#password-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,96C1248,75,1344,53,1392,42.7L1440,32L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.password-container {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    text-align: center;
    z-index: 1;
}

.password-container h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    color: #333;
    font-weight: 300;
    letter-spacing: 0.05em;
}

.password-container .subtitle {
    margin: 0 0 2rem 0;
    font-size: 0.9rem;
    color: #666;
    font-weight: 300;
}

.password-container p {
    margin: 0 0 1.5rem 0;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

#password-form {
    margin-top: 1.5rem;
}

#password-input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

#password-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#password-form button {
    width: 100%;
    padding: 0.9rem;
    font-size: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.05em;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-transform: uppercase;
}

#password-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

#password-form button:active {
    transform: translateY(0);
}

#password-error {
    display: none;
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 1rem;
    padding: 0.7rem;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

/* Shake animation for wrong password */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

.shake {
    animation: shake 0.5s;
}

/* Main content visible by default (fallback if JS disabled) */
#wrapper {
    display: block;
    opacity: 1;
    transition: opacity 0.5s ease;
}

#wrapper.locked {
    display: none;
    opacity: 0;
}

/* Mobile responsiveness */
@media screen and (max-width: 480px) {
    .password-container {
        padding: 2rem 1.5rem;
    }
    
    .password-container h1 {
        font-size: 1.6rem;
    }
}
