/* Styles specific to the passcode screen */
.passcode-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    padding: 0; 
    z-index: 4;
    
    min-height: 100vh;
    min-width: 100vw;
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-image: url('https://images.unsplash.com/photo-1541343672885-9be56236302a?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=387&q=80');
    
    background-color: rgba(0,0,0,0.1);
    background-blend-mode: darken;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.passcode-screen::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('https://images.unsplash.com/photo-1541343672885-9be56236302a?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=387&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    filter: blur(1.5rem);
    z-index: -1;
    transform: scale(1.1);
}

.passcode-screen .passcode-prompt {
    color: white;
    font-size: calc(16.5px * 1.25); 
    margin-bottom: calc(15px * 1.25); 
    position: relative;
    z-index: 10;
}

.passcode-screen .passcode-dots {
    display: flex;
    margin-bottom: calc(30px * 1.25); 
    position: relative;
    z-index: 10;
}

.passcode-screen .dot {
    width: calc(10.5px * 1.25); 
    height: calc(10.5px * 1.25); 
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 calc(7.5px * 1.25); 
}

.passcode-screen .dot.filled {
    background-color: white;
    border-color: white;
}

.passcode-screen .passcode-pad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: calc(15px * 1.25); 
    width: calc(210px * 1.25); 
    position: relative;
    z-index: 10;
}

.passcode-screen .digit {
    width: calc(60px * 1.25); 
    height: calc(60px * 1.25); 
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: calc(27px * 1.25); 
    cursor: pointer;
    transition: background-color 0.2s;
    user-select: none;
}

.passcode-screen .digit:active {
    background-color: rgba(255, 255, 255, 0.5);
}

.passcode-screen .digit[data-digit="0"] {
    grid-column: 2;
}

.passcode-screen .error-message, 
.passcode-screen .attempts-message {
    color: white;
    margin-top: calc(15px * 1.25); 
    font-size: calc(12px * 1.25); 
    position: relative;
    z-index: 10;
}

.passcode-screen .attempts-message {
    display: none; 
    margin-top: calc(5px * 1.25);
}

@keyframes slideUp {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-100%);
        opacity: 0;
    }
}

.passcode-screen.slide-up {
    animation: slideUp 0.5s forwards;
}