.slide-shrink-topright {
    animation: slideShrinkTopRight 0.7s cubic-bezier(0.4,0,0.2,1) forwards;
}

@keyframes slideShrinkTopRight {
    60% {
        top: 2rem;
        left: calc(100vw - 5rem);
        transform: scale(0.7);
        opacity: 1;
    }
    100% {
        top: 15px;
        left: calc(100vw - 4.5rem);
        min-width: 0;
        width: 40px;
        height: 40px;
        padding: 0;
        font-size: 1.7rem;
        border-radius: 50%;
        background: #222;
        color: #e2e8f0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.18);
        display: flex;
        align-items: center;
        justify-content: center;
        transform: scale(1);
        opacity: 1;
    }
}

.password-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--bg);
}

.lock-icon {
    font-size: 3.5rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.back-arrow {
    position: absolute;
    top: 2rem;
    left: 2rem;
    min-width: 180px;
    font-size: 1.1rem;
    padding: 16px 32px;
    border-radius: 18px;
    background: rgb(33, 33, 33);
    color: #e2e8f0;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    font-weight: 500;
    z-index: 10;
    transition: background 0.25s, color 0.25s, box-shadow 0.25s, transform 0.25s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-arrow:hover {
    background: #273449;
    color: #fff;
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.25);
    transform: translateY(-6px) scale(1.01);
}

#password-input {
    padding: 0.75rem 1.2rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1.1rem;
    outline: none;
    margin-bottom: 1rem;
    width: 260px;
    background: #fff;
    transition: border 0.2s;
}

#password-input:focus {
    border: 5px solid #0078d7;
}

#password-screen .btn {
    opacity: 1;
    transform: translateY(0);
    margin: 32px auto 0 auto;
    padding: 24px;
    width: 260px;
}

#password-screen .faint-text {
    color: #aaa;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    margin-top: 0.2rem;
    letter-spacing: 0.02em;
    text-align: center;
}

#error-message {
    margin-top: 1rem;
    color: #d32f2f;
    font-size: 1rem;
    min-height: 1.2em;
}