/* ============================================
   Login Page Styles - Вход
   ============================================ */

/* Улучшенная форма с фоном и тенью */
.t678 {
    max-width: 500px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
}

/* Переопределяем контейнер для формы входа */
.r.t-rec_pt_0.t-rec_pb_105 .t678 .t-container {
    max-width: 100%;
    padding: 0;
}

.t678 .t-col_8 {
    margin-left: 0;
    width: 100%;
    padding: 0;
}

/* Центрируем заголовок */
.r.t-rec_pt_15 .t015,
.t678 .t015 {
    text-align: center;
    margin-bottom: 30px;
}

.r.t-rec_pt_15 .t015__title {
    margin-bottom: 10px;
}

.t678 .t015__title {
    margin-bottom: 6px;
    font-size: 28px;
    line-height: 1.2;
}

.r.t-rec_pt_15 .t015__descr {
    color: #666;
    font-size: 16px;
}

.t678 .t015__descr {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

/* Улучшенные поля ввода */
.t-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #000000;
    background-color: #fff;
    font-family: 'MatahariExtended600ExtSemBd', Arial, sans-serif;
    font-weight: 400;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.t-input:focus {
    outline: none;
    border-color: #8a2b18;
    box-shadow: 0 0 0 3px rgba(138, 43, 24, 0.1);
}

.t-input::placeholder {
    color: #999;
    opacity: 1;
}

.t-input-group {
    margin-bottom: 20px;
}

/* Улучшенная кнопка "Войти" */
.t-form__submit {
    margin-top: 30px;
}

.t-btnflex.t-btnflex_type_submit {
    color: #ffffff;
    background-color: #8a2b18;
    border: 2px solid #8a2b18;
    border-radius: 8px;
    padding: 14px 32px;
    font-family: 'MatahariExtended600ExtSemBd', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.t-btnflex.t-btnflex_type_submit:hover {
    background-color: #6a1f12;
    border-color: #6a1f12;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(138, 43, 24, 0.3);
}

.t-btnflex.t-btnflex_type_submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(138, 43, 24, 0.2);
}

.t-btnflex.t-btnflex_type_submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Индикатор загрузки */
.t-btnflex.t-btnflex_type_submit .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Улучшенные сообщения об ошибках */
.t-form__errorbox-wrapper {
    background-color: #fee;
    border: 1px solid #fcc;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    color: #d32f2f;
}

.t-form__errorbox-text {
    list-style: none;
    padding: 0;
    margin: 0;
}

.t-input-error {
    color: #d32f2f;
    font-size: 12px;
    margin-top: 5px;
    display: block;
    min-height: 18px;
}

/* Улучшенные отступы секции */
.r.t-rec_pt_0.t-rec_pb_105 {
    padding-bottom: 60px;
    padding-top: 30px;
}

/* Уменьшаем отступы заголовка */
.r.t-rec_pt_15.t-rec_pb_105 {
    padding-top: 40px;
    padding-bottom: 20px;
}

/* Ссылки внизу формы */
.t-form__bottom-text {
    margin-top: 20px;
    text-align: center;
}

.t-form__bottom-text a {
    color: #8a2b18;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.t-form__bottom-text a:hover {
    color: #6a1f12;
    text-decoration: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .t678 {
        padding: 30px 20px;
        margin: 0 15px;
        max-width: calc(100% - 30px);
    }
    
    .t678 .t-col_8 {
        width: 100%;
        padding: 0;
    }
    
    .r.t-rec_pt_0.t-rec_pb_105 {
        padding-bottom: 40px;
        padding-top: 20px;
    }
    
    .r.t-rec_pt_15.t-rec_pb_105 {
        padding-top: 30px;
        padding-bottom: 15px;
    }
    
    .r.t-rec_pt_15 .t015__title {
        font-size: 28px;
    }
    
    .t678 .t015__title {
        font-size: 24px;
    }
    
    .r.t-rec_pt_15 .t015__descr {
        font-size: 14px;
    }
    
    .t678 .t015__descr {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .t678 {
        padding: 25px 15px;
        border-radius: 8px;
    }
    
    .t-input {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .t-btnflex.t-btnflex_type_submit {
        padding: 12px 24px;
    }
}

