/* Password Gate Styles - Villa Taitan x Radoo */

#password-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #20134f 0%, #0a0520 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: fadeIn 0.5s ease-in-out;
}

#password-gate::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(52, 220, 163, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(52, 220, 163, 0.15) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

.gate-container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 500px;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(52, 220, 163, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.8s ease-out;
}

.gate-icon {
    font-size: 80px;
    color: #34dca3;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.gate-title {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.gate-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    line-height: 1.6;
}

.gate-message {
    font-size: 14px;
    color: #34dca3;
    margin-bottom: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#password-input {
    width: 100%;
    padding: 18px 25px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(52, 220, 163, 0.3);
    border-radius: 10px;
    color: #ffffff;
    text-align: center;
    letter-spacing: 4px;
    transition: all 0.3s ease;
    font-weight: 600;
}

#password-input:focus {
    outline: none;
    border-color: #34dca3;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(52, 220, 163, 0.3);
}

#password-input:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

#password-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 2px;
}

#password-submit {
    padding: 18px 40px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #34dca3 0%, #2ab885 100%);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(52, 220, 163, 0.3);
    position: relative;
    overflow: hidden;
}

#password-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#password-submit:active::before {
    width: 300px;
    height: 300px;
}

#password-submit:disabled {
    cursor: not-allowed;
    opacity: 0.9;
}

#password-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(52, 220, 163, 0.5);
}

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

#password-error {
    display: none;
    color: #ff4444;
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
    animation: shake 0.5s ease-in-out;
}

.gate-footer {
    margin-top: 30px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

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

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

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

/* Unlock animation */
#password-gate.unlock {
    animation: fadeOut 1.2s ease-out forwards;
}

#password-gate.unlock .gate-container {
    animation: unlockZoom 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

#password-gate.unlock::before {
    animation: unlockGlow 1.2s ease-out forwards;
}

/* Success icon */
.success-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 120px;
    z-index: 10;
    animation: successPop 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* Particles */
.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #34dca3;
    border-radius: 50%;
    pointer-events: none;
}

/* Unlock animations */
@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes unlockZoom {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
    100% {
        transform: scale(3) rotate(360deg);
        opacity: 0;
    }
}

@keyframes unlockGlow {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 1;
        filter: brightness(3);
    }
    100% {
        opacity: 0;
        filter: brightness(5);
    }
}

@keyframes successPop {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3) rotate(180deg);
        opacity: 1;
    }
    70% {
        transform: translate(-50%, -50%) scale(1.1) rotate(360deg);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(5) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .gate-container {
        margin: 20px;
        padding: 40px 30px;
    }

    .gate-title {
        font-size: 24px;
    }

    .gate-subtitle {
        font-size: 16px;
    }

    .gate-icon {
        font-size: 60px;
    }
}

