/**
 * PW Protect - Frontend Styles
 */

/* Schriftarten definieren */
@font-face {
    font-family: 'SG Europa';
    src: url('../SG - Europa Grotesk SH OP Bold Extended.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'adidasFG';
    src: url('../adidasFG.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

#pwprotect-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1E1E1E;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'adidasFG', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#pwprotect-container {
    background: transparent;
    padding: 0;
    max-width: var(--pwprotect-container-max-width, 450px);
    width: 90%;
    text-align: center;
    animation: fadeIn 0.3s ease-in;
    margin: 0 auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#pwprotect-logo {
    margin-bottom: var(--pwprotect-logo-title-spacing, 40px);
}

#pwprotect-logo img {
    max-width: 200px;
    max-height: 100px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
}

#pwprotect-title {
    font-family: 'SG Europa', sans-serif;
    font-size: var(--pwprotect-title-size, 48px);
    font-weight: bold;
    color: var(--pwprotect-title-color, #ffffff);
    margin: 0 0 20px 0;
    line-height: var(--pwprotect-line-height, 1.2);
    text-transform: none;
    letter-spacing: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
    box-sizing: border-box;
}

#pwprotect-message {
    font-family: 'adidasFG', sans-serif;
    font-size: var(--pwprotect-message-size, 16px);
    color: #ffffff;
    margin: 0 0 40px 0;
    line-height: var(--pwprotect-line-height, 1.2);
    width: 100%;
    box-sizing: border-box;
}

#pwprotect-form {
    display: flex;
    flex-direction: column;
    gap: var(--pwprotect-input-button-spacing, 20px);
}

#pwprotect-password-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    font-family: 'adidasFG', sans-serif;
    background: #ffffff;
    color: #1E1E1E;
    border: none;
    border-radius: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
    outline: none;
}

#pwprotect-password-input::placeholder {
    color: #999999;
}

#pwprotect-password-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(123, 123, 123, 0.3);
}

#pwprotect-submit {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-family: 'adidasFG', sans-serif;
    font-weight: normal;
    color: #ffffff;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--pwprotect-button-color, #7B7B7B);
}

#pwprotect-submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

#pwprotect-submit:active {
    transform: translateY(0);
}

#pwprotect-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

#pwprotect-error {
    margin-top: 20px;
    padding: 12px;
    background-color: rgba(255, 0, 0, 0.1);
    color: #ff6b6b;
    border-radius: 0;
    font-size: 14px;
    font-family: 'adidasFG', sans-serif;
    border: 1px solid rgba(255, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 600px) {
    #pwprotect-container {
        padding: 0 20px;
    }
    
    #pwprotect-title {
        font-size: calc(var(--pwprotect-title-size, 48px) * 0.75);
    }
    
    #pwprotect-message {
        font-size: calc(var(--pwprotect-message-size, 16px) * 0.875);
    }
    
    #pwprotect-logo img {
        max-width: 150px;
        max-height: 75px;
    }
}
