/* Основной фон страницы */
.back_gray_fon {
    background-color: #f4f5f8;
    min-height: 100vh;
}

/* Контейнер карточки логина */
.login_card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* Стилизация формы */
.from-login {
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 2px 6px 15px 0 rgba(69, 65, 78, .1);
    border: 0;
}

/* Блок с логотипом */
.logo_box {
    text-align: center;
    margin-bottom: 25px;
}

.logo_box img {
    max-width: 150px;
    height: auto;
}

/* Заголовок формы */
.login-title {
    font-size: 24px;
    font-weight: 700;
    color: #45414e;
    margin-bottom: 20px;
    text-align: center;
}

/* Контейнер для поля пароля и иконки глаза */
.form_gr {
    position: relative;
    display: flex;
    align-items: center;
}

/* Иконка глаза внутри поля пароля */
.input_eye {
    position: absolute;
    right: 12px;
    cursor: pointer;
    width: 20px;
    height: 20px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    user-select: none;
}

.input_eye:hover {
    opacity: 1;
}

/* Смещение текста в инпуте, чтобы он не заходил под иконку */
.form_gr .form-control {
    padding-right: 40px;
}

/* Выравнивание текста и ссылок */
.col-text-right {
    text-align: right;
}

.col-text-center {
    text-align: center;
}

.col-text-right a, 
.title_text_enter a {
    color: #0193F4;
    text-decoration: none;
    font-size: 14px;
}

.col-text-right a:hover, 
.title_text_enter a:hover {
    text-decoration: underline;
}

/* Стили для кастомного чекбокса и его лейбла */
.custom-checkbox {
    cursor: pointer;
    margin-right: 8px;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-size: 14px;
    color: #4e4e4e;
}

/* Текстовые блоки внизу формы */
.title_text_enter {
    text-align: center;
    font-size: 14px;
    color: #8d8d8d;
}

/* Кнопка "Терминал" (btn-gray2) */
.btn-gray2 {
    background-color: #ebecec;
    border-color: #ebecec;
    color: #333333;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-gray2:hover {
    background-color: #e1e2e2;
    border-color: #e1e2e2;
    color: #222;
}

.btn-gray2 img {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 576px) {
    .allblock {
        height: auto;
        padding: 40px 15px;
    }
    
    .col-text-right {
        text-align: left;
        margin-top: 5px;
    }
}

/* Контейнер навигации вкладок */
.custom-tab-nav {
    display: flex;
    justify-content: center;
    gap: 4px;
}

/* Кнопки переключения вкладок */
.custom-tab-nav .tab-btn {
    width: 50%;
    text-align: center;
    border-radius: 6px;
    color: #555;
    font-weight: 600;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border: 1px solid #ebedf2;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-tab-nav .tab-btn:focus {
    outline: none;
}

/* Активная кнопка (Фирменный стиль Atlantis) */
.custom-tab-nav .tab-btn.active {
    background: #6861ce !important;
    border-color: #6861ce !important;
    color: #fff !important;
}

/* Скрытие и отображение контента вкладок */
.custom-tab-pane {
    display: none;
}

.custom-tab-pane.active {
    display: block;
    animation: fadeInTab 0.3s ease;
}

/* Плавное появление контента */
@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Контейнер-оболочка сканера */
#reader-wrapper {
    position: relative;
    width: 100%;
    max-width: 280px;
    height: 210px;
    margin: 0 auto;
    overflow: hidden;
    background-color: #000;
    border-radius: 8px;
    border: 2px solid #6861ce;
    box-shadow: 0 4px 12px rgba(104, 97, 206, 0.2);
}

#webcam {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#scanner-lax {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, transparent, #ff3b30, transparent);
    box-shadow: 0 0 8px #ff3b30;
    animation: scanAnimation 2s linear infinite;
    pointer-events: none;
}

@keyframes scanAnimation {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

/* Исправление контрастности для кнопки выключения сканера */
#toggle-btn.btn-danger {
    background-color: #f25961 !important;
    border-color: #f25961 !important;
    color: #ffffff !important; /* Делаем текст строго белым */
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease;
}

#toggle-btn.btn-danger:hover {
    background-color: #d43f45 !important;
    border-color: #d43f45 !important;
}

/* Изменяем класс кнопки, когда сканер выключен и его нужно включить обратно */
#toggle-btn.btn-success {
    background-color: #31ce77 !important;
    border-color: #31ce77 !important;
    color: #ffffff !important;
    font-weight: 600;
}

/* Стилизация информационного блока статуса (убираем сходство с кнопкой) */
#result {
    margin-top: 12px;
    padding: 10px;
    border-radius: 6px;
    background-color: #f8f9fa;
    border: 1px solid #ebedf2;
    color: #495057;
    font-size: 13px;
    font-weight: 500;
}

.icon-input {
		border-top-right-radius: 0;
		border-bottom-right-radius: 0;
		background: white;
		
		border: 1px solid #ced4da;
	
		border-style: solid none solid solid;

	}
	
	.icon-input-left{
		
		background: white;		
		border: 1px solid #ced4da;	
		border-style: solid  solid solid none; 

	}
	.allblock {
		display: flex;
		justify-content: center;
		align-items: center;
		height: 90vh;
		  
	}

	.from-login {
		border-radius: 12px;
		background-color: #fff;
		-webkit-box-shadow: 2px 6px 15px 0 rgba(69, 65, 78, .1);
		-moz-box-shadow: 2px 6px 15px 0 rgba(69, 65, 78, .1);
		box-shadow: 2px 6px 15px 0 rgba(69, 65, 78, .1);
		border: 0;
	}
	

	.notify_error {
		font-size:14px;
		line-height:130%;
		color:#FA5145;
		font-weight:400;
	}
	
	input:-webkit-autofill,
	input:-webkit-autofill:hover,
	input:-webkit-autofill:active,
	input:-webkit-autofill:focus {
		background-color: #FFFFFF !important;
		color: #555 !important;
		-webkit-box-shadow: 0 0 0 1000px white inset !important;
		-webkit-text-fill-color: #555555 !important;
	}
	.title_text_enter a{
		color:#0193F4;
		
	}
	
	.form-control {
		border-color: #F0F0F0;
	}
	
	.form-control.error {
		border-color: #FFCCC9;
	}
