* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #c6b3c9;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 15px;
}

.window {
    background-color: white;
    max-width: 400px;
    width: 90%;
    padding: 30px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.header {
    margin-bottom: 15px;
}

.logo {
    width: 50px;
    height: 50px;
    display: block;
    margin: 0 auto 10px;
}

h1 {
    font-size: 22px;
    color: #ae8bb5;
    margin-bottom: 5px;
}

.header p {
    color: #555;
    font-size: 14px;
    margin-bottom: 20px;
}

.info {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.4;
}

/* Стилизация формы */
form {
    text-align: left; /* Текст и инпуты внутри формы выравниваем по левому краю */
}

form h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
}

/* Красивые поля ввода */
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #ae8bb5;
}

/* Контейнер для кнопок (выстраивает их в ряд) */
.buttons {
    display: flex;
    gap: 10px; /* Расстояние между кнопками */
    margin-bottom: 20px;
}

/* Общие стили ОДНОВРЕМЕННО для кнопки и для ссылки-кнопки */
.buttons button,
.buttons .register-link {
    flex: 1; /* Делает их одинаковой ширины */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 42px; /* Фиксированная одинаковая высота */
    padding: 10px;
    background-color: #ae8bb5; /* Фиолетовый фон */
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none; /* Убирает подчеркивание у ссылки */
    border: none; /* Убирает рамку у кнопки */
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease;
}

/* Эффект при наведении на обе кнопки */
.buttons button:hover,
.buttons .register-link:hover {
    background-color: #93719a;
}

/* Ссылка "Забыли пароль?" */
.forgot {
    display: block;
    text-align: center;
    color: #888;
    font-size: 13px;
    text-decoration: none;
}

.forgot:hover {
    text-decoration: underline;
}

/* Стили для подвала */
.footer {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 15px;
    font-size: 13px;
    color: #777;
}

.footer p {
    margin-bottom: 5px;
}
