/* ====================================
   OZEL DIGITAL - PASSWORD PROTECTION
   ==================================== */

#passwordOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    touch-action: none;
    -webkit-overflow-scrolling: none;
}

/* Blokkeer interactie met achterliggende content wanneer overlay actief is */
body.no-scroll-password {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

body.no-scroll-password > *:not(#passwordOverlay) {
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

#passwordOverlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(14, 165, 233, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

#passwordForm {
    background: var(--white);
    padding: 2rem 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-2xl);
    max-width: 450px;
    width: 90%;
    position: relative;
    z-index: 1;
    animation: slideInUp 0.5s ease-out;
    display: flex;
    flex-direction: column;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#passwordForm.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-10px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(10px);
    }
}

.password-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.coming-soon-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
    animation: pulse 2s ease-in-out infinite;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: var(--shadow-md);
    }
    50% {
        transform: scale(1.05);
        box-shadow: var(--shadow-lg);
    }
}

.coming-soon-badge i {
    margin-right: 0.5rem;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.coming-soon-message {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(14, 165, 233, 0.1) 100%);
    border-left: 3px solid var(--primary-color);
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 1.25rem;
    text-align: left;
}

.coming-soon-message p {
    margin: 0;
    font-size: 0.813rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.coming-soon-message i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.password-logo {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.password-logo i {
    font-size: 2rem;
    color: var(--white);
}

.password-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.375rem;
    font-family: 'Poppins', sans-serif;
    line-height: 1.2;
}

.password-subtitle {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.4;
}

.password-input-group {
    margin-bottom: 1.25rem;
}

.password-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.password-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--light-dark);
    border-radius: 0.5rem;
    background: var(--white);
    color: var(--dark);
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.password-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.password-input::placeholder {
    color: var(--text-lighter);
}

#passwordError {
    display: none;
    background: #fee2e2;
    color: #dc2626;
    padding: 0.625rem 0.875rem;
    border-radius: 0.5rem;
    font-size: 0.813rem;
    margin-bottom: 1rem;
    border: 1px solid #fecaca;
    animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#passwordError i {
    margin-right: 0.5rem;
}

.password-submit-btn {
    width: 100%;
    padding: 0.75rem 1.25rem;
    font-size: 0.938rem;
    font-weight: 600;
    color: var(--white);
    background: var(--gradient-primary);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-md);
    margin-top: 0.25rem;
}

.password-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.password-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.password-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.password-submit-btn i {
    font-size: 1rem;
}

.password-footer {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.688rem;
    color: var(--text-lighter);
    line-height: 1.4;
}

.password-brand-logo {
    margin-top: 1rem;
    padding-top: 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.password-brand-image {
    max-width: 80px;
    width: auto;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    display: block;
    margin: 0 auto;
}

.password-brand-image:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    #passwordForm {
        padding: 1.5rem 1.25rem;
        margin: 0.75rem;
        max-width: calc(100% - 1.5rem);
        width: calc(100% - 1.5rem);
        max-height: 85vh;
    }

    .password-header {
        margin-bottom: 1.25rem;
    }

    .password-title {
        font-size: 1.25rem;
        margin-bottom: 0.375rem;
    }

    .password-subtitle {
        font-size: 0.875rem;
    }

    .password-logo {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }

    .password-logo i {
        font-size: 1.25rem;
    }

    .coming-soon-badge {
        font-size: 0.688rem;
        padding: 0.35rem 0.875rem;
        margin-bottom: 0.875rem;
    }

    .coming-soon-message {
        padding: 0.75rem;
        margin-bottom: 1.25rem;
    }

    .coming-soon-message p {
        font-size: 0.75rem;
        line-height: 1.5;
    }

    .password-input-group {
        margin-bottom: 1.25rem;
    }

    .password-label {
        font-size: 0.813rem;
        margin-bottom: 0.375rem;
    }

    .password-input {
        padding: 0.75rem 0.875rem;
        font-size: 0.938rem;
    }

    .password-submit-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.938rem;
    }

    .password-footer {
        margin-top: 1.25rem;
        font-size: 0.688rem;
    }

    .password-brand-logo {
        margin-top: 1.25rem;
        padding-top: 0;
    }

    .password-brand-image {
        max-width: 70px;
    }
}

/* Extra kleine schermen */
@media (max-width: 480px) {
    #passwordForm {
        padding: 1.25rem 1rem;
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
        width: calc(100% - 1rem);
        max-height: 90vh;
        border-radius: 0.75rem;
    }

    .password-header {
        margin-bottom: 1rem;
    }

    .password-title {
        font-size: 1.125rem;
    }

    .password-subtitle {
        font-size: 0.813rem;
    }

    .password-logo {
        width: 45px;
        height: 45px;
        margin-bottom: 0.875rem;
    }

    .password-logo i {
        font-size: 1.125rem;
    }

    .coming-soon-badge {
        font-size: 0.625rem;
        padding: 0.3rem 0.75rem;
        margin-bottom: 0.75rem;
    }

    .coming-soon-message {
        padding: 0.625rem;
        margin-bottom: 1rem;
    }

    .coming-soon-message p {
        font-size: 0.688rem;
    }

    .password-input-group {
        margin-bottom: 1rem;
    }

    .password-input {
        padding: 0.688rem 0.75rem;
        font-size: 0.875rem;
    }

    .password-submit-btn {
        padding: 0.688rem 1rem;
        font-size: 0.875rem;
    }

    .password-brand-logo {
        margin-top: 1rem;
        padding-top: 0;
    }

    .password-brand-image {
        max-width: 60px;
    }
}

/* Dark mode support (optioneel) */
@media (prefers-color-scheme: dark) {
    #passwordForm {
        background: var(--dark-light);
        color: var(--light);
    }

    .password-title {
        color: var(--light);
    }

    .password-subtitle {
        color: var(--text-light);
    }

    .password-input {
        background: var(--dark-lighter);
        border-color: var(--dark-lighter);
        color: var(--light);
    }

    .password-input:focus {
        border-color: var(--primary-color);
    }

    .coming-soon-message {
        background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(14, 165, 233, 0.15) 100%);
    }

    .coming-soon-message p {
        color: var(--light);
    }
}

