/* General body styles */
body {
    font-family: Arial, sans-serif;
    background-color: #1e1e1e;
    color: white;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Container for the form */
section {
    background-color: #333;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 400px;
}

/* Header styles */
header {
    text-align: center;
    margin-bottom: 20px;
}

header h1 {
    color: white;
    font-size: 2rem;
}

/* Form and input styles */
form {
    display: flex;
    flex-direction: column;
}

legend {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

input[type="text"], input[type="password"] {
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #666;
    background-color: #444;
    color: white;
    font-size: 1rem;
}

input[type="text"]:focus, input[type="password"]:focus {
    border-color: #aaa;
    background-color: #555;
    outline: none;
}

/* Button styles */
input[type="submit"], input[type="reset"] {
    background-color: #777;
    color: white;
    border: none;
    padding: 12px;
    margin-top: 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

input[type="submit"]:hover, input[type="reset"]:hover {
    background-color: #999;
}

/* Error message styling */
p {
    color: white;
}

/* Link style for registration */
a {
    color: #f76c6c;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}