body {
    font-family: sans-serif;
    text-align: center;
    background-color: #f4f4f4;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

button, input {
    font: inherit;
}

.page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

header h1 {
    color: #333;
}

.container {
    max-width: 440px;
    margin: 0 auto;
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container h1 {
    margin-top: 0;
}

form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-form {
    flex-direction: column;
}

.name-form {
    width: 278px;
}

.name-form .btn {
    width: 90px;
    box-sizing: border-box;
}

input[type="text"], input[type="password"] {
    padding: 3px 6px;
    width: 180px;
    box-sizing: border-box;
}

.color-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    gap: 8px;
    width: 278px;
}

.color-section .btn {
    flex: 1;
    box-sizing: border-box;
    text-align: center;
    white-space: nowrap;
    padding: 8px 4px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    background-color: #6C93B8;
    color: white;
    cursor: pointer;
    font-size: 0.8em;
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
}

.btn:hover {
    background-color: #587a9a;
}

.nav-link {
    margin-top: 12px;
}

.plain-link {
    margin-top: 12px;
    font-size: 0.8em;
}

.auth-form input {
    font-size: 0.85em;
}

#name {
    font-size: 0.8em;
}

.btn-row {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.message {
    text-align: center;
}

footer {
    margin-top: 20px;
    font-size: 0.8em;
    color: #777;
}
