:root {
    color-scheme: light dark;
}

body {
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
}

.container {
    text-align: center;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 400px;
}

.description {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.input-container {
    margin-bottom: 1rem;
    display: flex;
}

input {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    flex-grow: 1;
}

button {
    padding: 0.5rem 1rem;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 0.5rem;
}

button:hover {
    background-color: #0056b3;
}

.otp-container {
    margin-top: 2rem;
}

#otp {
    font-size: 2.5rem;
    margin: 0.5rem;
    letter-spacing: 2px;
}

.progress-bar-container {
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    margin: 1rem 0;
}

.progress-bar {
    height: 100%;
    width: 100%;
    background-color: #007bff;
    border-radius: 5px;
    transition: width 1s linear;
}

.footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.github-link:hover {
    color: #007bff;
}

.github-link svg {
    vertical-align: middle;
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #050505;
        color: #f5f5f5;
    }

    .container {
        background-color: #0f0f0f;
        color: inherit;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
    }

    .description {
        color: #b3b3b3;
    }

    input {
        background-color: #1a1a1a;
        border: 1px solid #333;
        color: inherit;
    }

    .progress-bar-container {
        background-color: #1f1f1f;
    }

    .progress-bar {
        background-color: #549cf7;
    }

    .footer {
        border-top: 1px solid #1f1f1f;
    }

    .github-link {
        color: #d0d0d0;
    }

    .github-link:hover {
        color: #549cf7;
    }
}
