.passcode-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 1rem;
}

.passcode-lock {
    background: linear-gradient(135deg, 
        rgba(26, 26, 46, 0.95) 0%, 
        rgba(45, 45, 58, 0.9) 30%, 
        rgba(107, 91, 149, 0.1) 70%, 
        rgba(155, 139, 189, 0.05) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(155, 139, 189, 0.3);
    border-radius: 25px;
    padding: 3rem;
    max-width: 600px;
    width: 100%;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 100px rgba(155, 139, 189, 0.1);
    position: relative;
    overflow: hidden;
}

.passcode-lock::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(155, 139, 189, 0.03) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.lock-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.constellation-border {
    position: relative;
    padding: 1.5rem;
}

.constellation-border::before {
    content: '✦ ✧ ✦ ✧ ✦';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(155, 139, 189, 0.6);
    font-size: 0.8rem;
    letter-spacing: 0.5rem;
    animation: twinkle-border 3s ease-in-out infinite;
}

.constellation-border::after {
    content: '✧ ✦ ✧ ✦ ✧';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(155, 139, 189, 0.6);
    font-size: 0.8rem;
    letter-spacing: 0.5rem;
    animation: twinkle-border 3s ease-in-out infinite reverse;
}

@keyframes twinkle-border {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.lock-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #e8e8e8;
    margin: 0;
    text-shadow: 0 0 20px rgba(155, 139, 189, 0.5);
    background: linear-gradient(45deg, #e8e8e8, #9b8bbd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-with-stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.title-star {
    color: rgba(155, 139, 189, 0.8);
    font-size: 1.5rem;
    animation: pulse-star 2s ease-in-out infinite;
}

.title-star.left {
    animation-delay: 0s;
}

.title-star.right {
    animation-delay: 0.5s;
}

@keyframes pulse-star {
    0%, 100% { 
        opacity: 0.6; 
        transform: scale(1);
        text-shadow: 0 0 10px rgba(155, 139, 189, 0.3);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.2);
        text-shadow: 0 0 20px rgba(155, 139, 189, 0.8);
    }
}

.passcode-inputs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2.5rem 0;
    position: relative;
    z-index: 1;
}

.passcode-letter {
    width: 50px;
    height: 60px;
    background: linear-gradient(135deg, 
        rgba(26, 26, 46, 0.8) 0%, 
        rgba(45, 45, 58, 0.6) 50%, 
        rgba(26, 26, 46, 0.8) 100%);
    border: 2px solid rgba(155, 139, 189, 0.3);
    border-radius: 12px;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 500;
    color: #e8e8e8;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 
        inset 0 2px 10px rgba(0, 0, 0, 0.3),
        0 4px 20px rgba(0, 0, 0, 0.2);
}

.passcode-letter:focus {
    outline: none;
    border-color: rgba(155, 139, 189, 0.8);
    background: linear-gradient(135deg, 
        rgba(45, 45, 58, 0.9) 0%, 
        rgba(107, 91, 149, 0.2) 50%, 
        rgba(45, 45, 58, 0.9) 100%);
    box-shadow: 
        inset 0 2px 10px rgba(0, 0, 0, 0.3),
        0 4px 20px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(155, 139, 189, 0.4);
    transform: translateY(-2px);
}

.passcode-letter.filled {
    border-color: rgba(155, 139, 189, 0.6);
    background: linear-gradient(135deg, 
        rgba(107, 91, 149, 0.3) 0%, 
        rgba(155, 139, 189, 0.1) 50%, 
        rgba(107, 91, 149, 0.3) 100%);
    text-shadow: 0 0 10px rgba(155, 139, 189, 0.6);
}

.lock-status {
    text-align: center;
    margin-top: 2.5rem;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.status-message {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: rgba(232, 232, 232, 0.8);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.status-message.success {
    color: rgba(125, 184, 125, 0.9);
    text-shadow: 0 0 15px rgba(125, 184, 125, 0.5);
}

.status-message.error {
    color: rgba(255, 123, 123, 0.9);
    text-shadow: 0 0 15px rgba(255, 123, 123, 0.5);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.animated-stars {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 1rem;
}

.floating-star {
    color: rgba(155, 139, 189, 0.7);
    font-size: 1.2rem;
    animation: float 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.floating-star:nth-child(2) {
    animation-delay: 0.5s;
}

.floating-star:nth-child(3) {
    animation-delay: 1s;
}

.floating-star:nth-child(4) {
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0); 
        opacity: 0.7;
        text-shadow: 0 0 8px rgba(155, 139, 189, 0.4);
    }
    50% { 
        transform: translateY(-8px); 
        opacity: 1;
        text-shadow: 0 0 15px rgba(155, 139, 189, 0.8);
    }
}

.passcode-lock.unlocked {
    border-color: rgba(125, 184, 125, 0.6);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 100px rgba(125, 184, 125, 0.3);
}

.passcode-lock.unlocked .passcode-letter {
    border-color: rgba(125, 184, 125, 0.5);
    background: linear-gradient(135deg, 
        rgba(125, 184, 125, 0.2) 0%, 
        rgba(160, 212, 160, 0.1) 50%, 
        rgba(125, 184, 125, 0.2) 100%);
    color: rgba(125, 184, 125, 0.9);
    text-shadow: 0 0 10px rgba(125, 184, 125, 0.6);
}

@media (max-width: 768px) {
    .passcode-lock {
        padding: 2rem;
        margin: 1rem;
    }
    
    .lock-title {
        font-size: 1.8rem;
    }
    
    .passcode-inputs {
        gap: 0.5rem;
    }
    
    .passcode-letter {
        width: 40px;
        height: 50px;
        font-size: 1.5rem;
    }
} 