body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    background-color: white;
    padding: 2em 3em;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 550px;
    text-align: center;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5em;
}

.header a {
    font-size: 0.9em;
    color: #666;
    text-decoration: none;
}

h1, h2 {
    color: #333;
    margin-top: 0;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-top: 1em;
    text-align: left;
    font-weight: 600;
    color: #555;
}

/* --- ОБНОВЛЕНО: Добавлен textarea к стилям --- */
input,
select,
textarea {
    width: 100%;
    padding: 0.8em;
    margin-top: 0.5em;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1em;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    box-sizing: border-box;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #4285F4;
    outline: none;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

.input-group {
    display: flex;
    align-items: center;
    margin-top: 0.5em;
}

.input-group input {
    flex-grow: 1;
    width: auto;
    margin-top: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group span {
    padding: 0.8em;
    background-color: #eee;
    border: 1px solid #ccc;
    border-left: none;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    color: #555;
}

.button {
    display: inline-block;
    background-color: #4285F4;
    color: white;
    padding: 1em;
    text-decoration: none;
    border-radius: 6px;
    margin-top: 1.5em;
    border: none;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: background-color 0.2s;
}

.button:hover {
    background-color: #357ae8;
}

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1em;
    border-radius: 6px;
    margin-bottom: 1em;
    text-align: left;
    border: 1px solid #f5c6cb;
}

fieldset {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1em 1.5em;
    margin-top: 1.5em;
}

legend {
    padding: 0 0.5em;
    font-weight: 600;
    color: #555;
}

.user-info {
    text-align: left;
    margin-bottom: 1em;
    padding: 1em;
    background-color: #f0f2f5;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.user-info p {
    margin: 0;
    color: #333;
}
