body.locked {
    font-family: sans-serif;
    background-color: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.lock-container {
    text-align: center;
}

.lock-container h2 {
    color: #c62828;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.lock-container p {
    margin: 0.4rem 0;
    color: #333;
}

.timer {
    font-weight: bold;
    font-size: 1.5rem;
    margin-top: 1rem;
    color: #c62828;
}

button.refresh-btn {
    margin-top: 2rem;
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    background-color: #c62828;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

button.refresh-btn:hover {
    background-color: #a91e1e;
}

/* login.css */

body.login-page {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-container {
    text-align: center;
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-logo {
    width: 100%;
    max-width: 280px;
    height: auto;
    margin-bottom: 40px;
}

.code-input {
    letter-spacing: 10px;
    font-size: 2rem;
    text-align: center;
    border: none;
    outline: none;
    width: 180px;
    margin-bottom: 30px;
    background: transparent;
}

.login-btn {
    padding: 10px 20px;
    font-size: 1rem;
    border: 1px solid #ccc;
    background-color: white;
    color: black;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}

.login-btn:hover {
    background-color: #e6e6e6;
}

.error-msg {
    color: #c62828;
    font-weight: bold;
    margin-bottom: 20px;
}

/* === Responsive Tweaks === */
@media (max-width: 480px) {
    .code-input {
        font-size: 1.5rem;
        letter-spacing: 8px;
    }

    .login-logo {
        max-width: 200px;
        margin-bottom: 30px;
    }

    .login-btn,
    .refresh-btn {
        font-size: 0.95rem;
    }

    .lock-container h2 {
        font-size: 1.4rem;
    }

    .timer {
        font-size: 1.2rem;
    }
}