* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Nunito", sans-serif;
    background: linear-gradient(135deg, #0c0a09, #0c0a09);
    color: #e5e7eb;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.6;
}

header {
    width: 100%;
    padding: 1rem 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

h2 {
    margin-top: 5px;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.main-container {
    background-color: #0a0a0a;
    display: block;
    margin: 1.2rem auto;
    border: 1px solid;
    border-color: hsl(0 0% 14.9%);
    border-radius: 20px;
    padding: 0 1vw;
}

.container {
    width: 90%;
    max-width: 800px;
    margin: 1.5rem auto;
    padding: 1rem;
}

#captchaCanvas {
    display: block;
    margin: 1rem auto;
    border: 1px solid;
    border-color: #3172e0;;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    border-radius: 10px;
}

input, button {
    font-size: 1rem;
    padding: 0.7rem 1rem;
    border-radius: 5px;
    border: 1px solid #2c2c2c;
    outline: none;
    transition: all 0.3s ease;
    margin: 0.5rem auto;
}

input {
    background-color: hsl(0 0% 14.9% / 0.3);
    color: #cccccc;
    width: 80%;
    max-width: 300px;
    font-family: "Nunito", sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    margin: auto auto;
    border: 1px solid;
    border-color: hsl(0 0% 14.9%);
    border-radius: 15px;
}

input:focus {
    border-color: #888888;
    outline: 1px solid #888888;
}

button {
    background: #3172e0E6;
    color: rgba(255,255,255, 1);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    width: 100%;
    font-family: "Nunito", sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.25rem;
    max-width: 300px;
    margin: 1rem auto;
    height: 2rem;
    display: block;
    justify-content: center;
    padding: 0.3rem;
    border-radius: calc(0.5rem - 2px);
}

button:hover {
    background: rgba(0, 212, 85, 1);
}

#keyDisplay {
    margin: 0.5rem auto;
    padding: 0.5rem 1.2rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    background-color: hsl(0 0% 14.9% / 0.3);
    border: 1px solid;
    border-color: hsl(0 0% 14.9%);
    border-radius: 60px;
    max-width: 100%;
    word-wrap: break-word;
    text-align: center;
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.star {
    position: absolute;
    background: #ffffff;
    border-radius: 50%;
    animation: twinkle 3s linear infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.3); }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }
    
    input, button {
        font-size: 0.9rem;
        width: 85%;
    }
}
