.login_container {
    max-width: 1450px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    margin-bottom: 150px;
    font-family: 'Exo 2', sans-serif;
}

.login_title {
    font-size: 26.88px;
    line-height: 26.88px;
    color: #333;
    font-style: normal;
    font-weight: 500;
}

.login_form_container {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1100px;
    width: 100%;
    margin-right: auto;
    margin-left: auto;
}

.login_form {
    display: flex;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    align-items: flex-start;
    justify-content: center;
    gap: 60px;
}

.login_l {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 48px;
}

.login_email, .login_password {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
}

.login_email span, .login_password span {
    color: #555;
    font-size: 20px;
    white-space: nowrap;
}

.login_email_input, .login_password_input {
    height: 41px;
    min-width: 300px;
    max-width: 400px;
    width: 100%;
    background: #ffffff;
    border: 1px solid #ddd;
    padding: 8px 8px;
    outline: none;
    border-radius: 2px;
    color: #1b1b1b;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.login_email_input:focus, .login_password_input:focus {
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.login_email_input.error, .login_password_input.error {
    border-color: #e74c3c;
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.3);
}

.login_r input {
    font-size: 26.88px;
    line-height: 53.76px;
    padding: 0 50px;
    border: 1px solid #aeaeae;
    color: #aeaeae;
    font-family: 'Exo 2', sans-serif;
    position: relative;
    top: -10px;
}

/* Стили для ошибок логина - в форме */
.login_error {
    background-color: #ffe6e6;
    border: 1px solid #e74c3c;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    color: #e74c3c;
    font-size: 16px;
    text-align: center;
    max-width: 600px;
    width: 100%;
}

/* Стили для валидационных ошибок - под формой */
.validation_error {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 5px;
    padding: 15px;
    margin: 20px 0;
    color: #856404;
    font-size: 16px;
    text-align: center;
    max-width: 600px;
    width: 100%;
    font-family: 'Exo 2', sans-serif;
}

.login_cookie {
    font-family: 'Exo 2', sans-serif;
    color: #555;
    font-size: 20px;
    white-space: nowrap;
    margin-top: 60px;
}

.login_bottom_buttons {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    gap: 140px;
    margin-top: 50px;
}

/* Стили для окна успешного входа */
.success_message_container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 20px;
    text-align: center;
}

.success_message_box {
    background-color: #e6ffe6;
    border: 1px solid #4CAF50;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 128, 0, 0.2);
    max-width: 500px;
    width: 100%;
}

.success_message_box h2 {
    color: #28a745;
    font-size: 28px;
    margin-bottom: 20px;
}

.success_message_box p {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.success_message_box strong {
    color: #007bff;
    font-size: 18px;
}

.user_actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

.button_logout {
    display: inline-block;
    padding: 12px 25px;
    background-color: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.button_logout:hover {
    background-color: #c0392b;
}

.button_home {
    display: inline-block;
    padding: 12px 25px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.button_home:hover {
    background-color: #0056b3;
}

.login_submit:hover {
    cursor: pointer;
    color: #000;
    border-color: #000;
    background-color: #d4f3ff;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .login_form {
        flex-direction: column;
        gap: 30px;
    }
    
    .login_l {
        align-items: center;
        gap: 30px;
    }
    
    .login_email, .login_password {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .login_email_input, .login_password_input {
        min-width: 250px;
    }
    
    .login_bottom_buttons {
        justify-content: center;
        gap: 40px;
    }
    
    .user_actions {
        flex-direction: column;
        align-items: center;
    }
}

