/* General styles */
* {
    box-sizing: border-box;
}

body {
    background-color: grey;
    font-family: "Arial", sans-serif;
    padding: 10px;
    position: relative;
}

.container {
    margin: 20px auto;
    padding: 20px; /* Increased padding for better spacing */
    width: 300px;
    background-color: #fff;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Added shadow for better visibility */
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    color: #777;
    font-size: 32px;
    margin: 15px auto;
    margin-bottom: 15px;
    text-align: center;
}

form {
    text-align: center;
}

input[type="text"], input[type="password"], textarea {
    padding: 12px 0;
    margin-bottom: 20px;
    border-radius: 3px;
    border: 2px solid transparent;
    text-align: center;
    width: 90%;
    font-size: 16px;
    transition: border .2s, background-color .2s;
    background-color: #f0f0f0; /* Set grey background */
}

textarea {
    resize: vertical; /* Allow vertical resizing */
    height: auto; /* Default height */
    overflow-wrap: break-word; /* Handle long words */
}

input[type="text"]:focus, input[type="password"]:focus, textarea:focus {
    border: 2px solid #3498DB;
}

input[type="submit"] {
    background-color: #3498DB;
    color: #fff;
    line-height: 25px;
    cursor: pointer;
    width: 30%;
    border-radius: 10px;
    border: none;
    padding: 12px; /* Added padding for button */
    margin-bottom: 20px; /* Added margin to ensure space below button */
}

input[type="submit"]:hover, input[type="submit"]:active {
    background-color: #1F78B4;
    border: 2px solid #1F78B4;
}

p {
    color: #777;
    font-size: 14px;
    text-align: center;
}

.field {
    width: 80%;
    font-size: 12px;
    text-align: center;
    background-color: #e0e0e0; /* Same grey as password field */
    padding: 12px 0;
    border-radius: 3px;
    border: 2px solid transparent;
    outline: none;
    margin-bottom: 15px;
    transition: border .2s, background-color .2s;
}

/* Focus styles for all fields */
input:focus, textarea:focus {
    border-color: #b3b3b3; /* Highlight border when focused */
}
