/* Basic styling for old browsers */
body {
    font-family: Arial, sans-serif;
    background: white;
    color: black;
    margin: 10px;
    padding: 10px;
}

form {
    text-align: center;
}

/* Dark mode support (fallback for older browsers) */
@media (prefers-color-scheme: dark) {
    body {
        background: black;
        color: white;
    }

    a {
        color: #88ccff;
    }

    input, textarea {
        background: #111;
        color: white;
        border-color: #009;
    }

    input::placeholder, textarea::placeholder {
        color: #888;
    }
}

/* Make the textarea stand out */
textarea {
    width: 100%;
    max-width: 600px;
    height: 120px;
    font-size: 16px;
    padding: 10px;
    border: 2px solid #000022;
    background: white;
    color: black;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
    border-radius: 8px;
}

/* Add slight animation and glow effect for focus */
textarea:focus {
    border-color: #007bff;
    outline: none;
}

/* Highlight the button to make it pop */
input[type="button"] {
    background: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
    width: 100%;
    border-radius: 10px;
}

input[type="button"]:hover {
    background: #0056b3;
}

/* Keep labels aligned nicely */
label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

/* Language input fieldset styling */
fieldset {
    border: 1px solid #ccc;
    padding: 10px;
    margin-top: 15px;
    max-width: 300px;
}

legend {
    font-weight: bold;
}

/* Input fields styling */
input[type="text"], input[type="password"] {
    width: 100%;
    max-width: 300px;
    padding: 5px;
    border: 1px solid #000022;
    box-sizing: border-box;
    border-radius: 5px;
}

input {
    outline: none;
}

/* Status message */
#status {
    display: none;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid black;
    background: #f8f8f8;
}

/* Dark mode styling for status */
@media (prefers-color-scheme: dark) {
    #status {
        background: #222;
        color: white;
        border-color: #555;
    }
}
