/* Общие стили */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    text-decoration: none;
    list-style: none;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(90deg, #e2e2e2, #c9d6ff);
    background: url('/static/img/back-white-min.jpg') no-repeat center center fixed;
    background-size: cover;
}

.container {
    position: relative;
    width: 100%;
    max-width: 500px; /* Уменьшаем ширину контейнера */
    background: #fff;
    margin: 75px auto;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 40px;
}

.container h1 {
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.container p {
    font-size: 14px;
    margin: 15px 0;
    text-align: center;
    color: #666;
}

form {
    width: 100%;
}

.input-box {
    position: relative;
    margin-bottom: 20px;
}

.input-box label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.input-box input,
.input-box select,
.input-box textarea {
    width: 100%;
    padding: 12px 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    color: #333;
    transition: border-color 0.3s ease;
}

.input-box input:focus,
.input-box select:focus,
.input-box textarea:focus {
    border-color: #7494ec;
}

.input-box i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #888;
}

.field-errors {
    color: red;
    font-size: 12px;
    margin-top: 5px;
}

.forgot-link {
    margin: 10px 0 20px;
    text-align: center;
}

.forgot-link a {
    font-size: 14px;
    color: #7494ec;
    text-decoration: none;
}

.forgot-link a:hover {
    text-decoration: underline;
}

.btn {
    width: 100%;
    height: 48px;
    background: #7494ec;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    color: #fff;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #5a7ddc;
}

.social-icons-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 300px;
    margin: 0 auto;
}


.social-icons .icon {
    display: inline-flex;
    width: 45px;
    height: 45px;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    margin: 0 8px;
    transition: transform 0.3s ease;
    border: 2px solid #7494ec;
}

.social-icons .icon:hover {
    transform: scale(1.1);
}

.social-icons .google {
    background-image: url('/static/img/icons/google-logo.jpg');
}

.social-icons .facebook {
    background-image: url('/static/img/icons/facebook-logo.jpg');
}

.social-icons .github {
    background-image: url('/static/img/icons/git-logo.jpg');
}

.social-icons .linkedin {
    background-image: url('/static/img/icons/linkedin-logo.jpg');
}

.social-icons .vk {
    background-image: url('/static/img/icons/vk.png');
}

/* Хедер с логотипом, меню и авторизацией */
.header {
    background: #0c1e35;
    height: 60px; /* Автоматическая высота */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px; /* Увеличиваем отступы */
    position: fixed; /* Фиксируем хедер сверху */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Чтобы хедер был поверх других элементов */
}

/* Логотип слева */
.logo {
    width: 100px;
    height: 60px;
    background: url('/static/img/logo.png') no-repeat center;
    background-size: contain;
}

/* Меню посередине */
ul.mainmenu {
    list-style: none;
    margin: 0;
    padding: 0;
    height: 60px;
    color: #ADD8E6;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

ul.mainmenu li {
    margin: 0 40px;
}

ul.mainmenu li a {
    color: #ADD8E6;
    text-decoration: none;
}

ul.mainmenu li a:hover {
    color: #FDA83D;
}

ul.mainmenu li.selected a {
    color: #FFFFFF;
    background: linear-gradient(90deg, #007bff, #007bff);
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-weight: bold;
    text-transform: uppercase;
}

/* Блок для авторизации справа */
.auth-links {
    display: flex;
    align-items: center;
    color: #fdc073;
    font-size: 20px;
}

.auth-links a {
    color: #fdc073;
    text-decoration: none;
    margin-left: 20px;
}

.auth-links a:hover {
    color: #FDA83D;
}

.clear {
    clear: both;
}

/* Общие ошибки формы */
.form-error-box {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #fff3f3;
    border: 1px solid #ffcccc;
    border-radius: 8px;
    color: #e74c3c;
    font-size: 14px;
}

.form-error-box i {
    margin-right: 10px;
    font-size: 20px;
}

.form-error-box ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.form-error-box li {
    margin-bottom: 5px;
}

/* Ошибки полей */
.field-errors {
    display: flex;
    align-items: center;
    margin-top: 5px;
    padding: 8px;
    background: #fff3f3;
    border: 1px solid #ffcccc;
    border-radius: 4px;
    color: #e74c3c;
    font-size: 12px;
}

.field-errors i {
    margin-right: 5px;
    font-size: 16px;
}

.field-errors ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.field-errors li {
    margin-bottom: 3px;
}
