/* css/login_style.css */
/* ======================================== */
/*          1. ОБЩИЕ СТИЛИ СТРАНИЦЫ         */
/* ======================================== */

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #1a1a2e;
    color: #e4e4e4;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ======================================== */
/*        2. ОСНОВНОЙ КОНТЕЙНЕР ФОРМЫ       */
/* ======================================== */

.container {
    width: 400px;
    padding: 40px;
    background: #2c394b;
    border-radius: 12px;
    border-top: 4px solid #7DDD51;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

h2 {
    margin-bottom: 30px;
    color: #ff6e40;
    text-align: center;
}

p {
    color: #b0b0b0;
}

/* ======================================== */
/*           3. ЭЛЕМЕНТЫ ФОРМЫ              */
/* ======================================== */

.form-group {
    position: relative;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #b0b0b0;
    font-weight: 600;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    background-color: #1e2a38;
    color: #e4e4e4;
    border: 1px solid #4a5d78;
    border-radius: 6px;
    transition: border-color 0.3s;
    /* Убираем стандартный вид для кроссбраузерности */
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
}

.form-input:focus {
    border-color: #ff6e40;
    outline: none;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    z-index: 10;
    color: #b0b0b0;
    cursor: pointer;
}

button {
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    background-color: #ff6e40;
    color: white;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #e06037;
}

/* ======================================== */
/*        4. СООБЩЕНИЯ И УВЕДОМЛЕНИЯ        */
/* ======================================== */

.message {
    padding: 12px;
    margin-top: 20px;
    border-radius: 6px;
    text-align: center;
}

.success {
    background-color: #38c172;
    color: #1e4d3a;
    border: 1px solid #1e4d3a;
}

.error {
    background-color: #f05060;
    color: #4e1919;
    border: 1px solid #4e1919;
}

/* ======================================== */
/*            5. ССЫЛКИ И УТИЛИТЫ           */
/* ======================================== */

.links-group {
    margin-top: 20px;
    text-align: center;
}

.links-group a {
    color: #ff6e40;
    font-size: 0.9em;
    text-decoration: none;
    transition: color 0.3s;
}

.links-group a:hover {
    color: #f05060;
}

.hidden {
    display: none !important;
}