@font-face {
    font-family: 'Stem';
    src: url('dashboard/fonts/Stem-Light.eot');
    src: local('Stem Light'), local('Stem-Light'),
        url('dashboard/fonts/Stem-Light.eot?#iefix') format('embedded-opentype'),
        url('dashboard/fonts/Stem-Light.woff2') format('woff2'),
        url('dashboard/fonts/Stem-Light.woff') format('woff'),
        url('dashboard/fonts/Stem-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Stem';
    src: url('dashboard/fonts/Stem-Medium.eot');
    src: local('Stem Medium'), local('Stem-Medium'),
        url('dashboard/fonts/Stem-Medium.eot?#iefix') format('embedded-opentype'),
        url('dashboard/fonts/Stem-Medium.woff2') format('woff2'),
        url('dashboard/fonts/Stem-Medium.woff') format('woff'),
        url('dashboard/fonts/Stem-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Stem';
    src: url('dashboard/fonts/Stem-Bold.eot');
    src: local('Stem Bold'), local('Stem-Bold'),
        url('dashboard/fonts/Stem-Bold.eot?#iefix') format('embedded-opentype'),
        url('dashboard/fonts/Stem-Bold.woff2') format('woff2'),
        url('dashboard/fonts/Stem-Bold.woff') format('woff'),
        url('dashboard/fonts/Stem-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Stem';
    src: url('dashboard/fonts/Stem-SemiLight.eot');
    src: local('Stem Semi Light'), local('Stem-SemiLight'),
        url('dashboard/fonts/Stem-SemiLight.eot?#iefix') format('embedded-opentype'),
        url('dashboard/fonts/Stem-SemiLight.woff2') format('woff2'),
        url('dashboard/fonts/Stem-SemiLight.woff') format('woff'),
        url('dashboard/fonts/Stem-SemiLight.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Stem';
    src: url('dashboard/fonts/Stem-ExtraLight.eot');
    src: local('Stem Extra Light'), local('Stem-ExtraLight'),
        url('dashboard/fonts/Stem-ExtraLight.eot?#iefix') format('embedded-opentype'),
        url('dashboard/fonts/Stem-ExtraLight.woff2') format('woff2'),
        url('dashboard/fonts/Stem-ExtraLight.woff') format('woff'),
        url('dashboard/fonts/Stem-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Stem';
    src: url('dashboard/fonts/Stem-Thin.eot');
    src: local('Stem Thin'), local('Stem-Thin'),
        url('dashboard/fonts/Stem-Thin.eot?#iefix') format('embedded-opentype'),
        url('dashboard/fonts/Stem-Thin.woff2') format('woff2'),
        url('dashboard/fonts/Stem-Thin.woff') format('woff'),
        url('dashboard/fonts/Stem-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Stem';
    src: url('dashboard/fonts/Stem-Regular.eot');
    src: local('Stem Regular'), local('Stem-Regular'),
        url('dashboard/fonts/Stem-Regular.eot?#iefix') format('embedded-opentype'),
        url('dashboard/fonts/Stem-Regular.woff2') format('woff2'),
        url('dashboard/fonts/Stem-Regular.woff') format('woff'),
        url('dashboard/fonts/Stem-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

    :root {
    --font-family-sans-serif: "Stem", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    }
        * {
            user-select: none; /* Запрещает выделение текста на странице */
        }

        body {
            font-family: "Stem", sans-serif;
            font-style: normal;
            font-display: 400;
            background-color: #1a1a1a; /* Темный фон */
            color: #fff; /* Белый текст */
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
            text-align: left;
            padding: 20px;
            -webkit-user-select: none; /* Блокировка выделения в Webkit браузерах */
            -moz-user-select: none; /* Для Firefox */
            -ms-user-select: none; /* Для IE */
        }
        
        .button:disabled {
            opacity: 0.5; /* Сделать кнопку полупрозрачной, когда она неактивна */
            pointer-events: none; /* Запретить взаимодействие с кнопкой */
        }

        .email-container, .login-container, .register-container, .passwordd-container {
            padding: 30px;
            width: 100%;
            max-width: 400px;
            background-color: #242424;
            border-radius: 10px;
            transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
            position: absolute;
        }
        h2 {
            display: flex;
            justify-content: center; /* Centers the content horizontally */
            align-items: center; /* Aligns the items vertically */
            font-size: 1.4rem;
            object-fit: contain; /* Ensures the image maintains its aspect ratio */
        }

        .icon {
            width: 28px; /* Adjust the size of the icon */
            height: 28px;
            margin-right: 7px; /* Space between the icon and the text */
            object-fit: contain; /* Ensures the image maintains its aspect ratio */
        }

        .warning-icon {
            width: 17px; /* Размер иконки */
            height: 17px;
            margin-right: 5px; /* Отступ между иконкой и текстом */
            vertical-align: middle; /* Выравнивание иконки по центру относительно текста */
            object-fit: contain;
        }


        h2 span {
            margin-right: 5px;
            color: #006EEF; /* Синий цвет для HarpyGuard */
        }

        /* Плавная анимация появления */
        .hidden {
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}



        #codeBlock:not(.hidden),
        #emailSentMessage:not(.hidden) {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        }

        #sentMessage {
  display: none;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  margin-top: 8px;
}
        .formBlock {
            margin-bottom: 15px;
        }

        .formBlock label {
            font-size: 0.8rem; /* Размер шрифта уменьшен в два раза */
            color: rgba(255, 255, 255, 0.5); /* Прозрачность 50% */
            margin-bottom: 5px;
            display: inline-block;
        }

        .formBlock .register-link {
            font-weight: 500;
            font-size: 0.8rem;
            color: #006eef;
            text-decoration: none; /* Убираем подчеркивание */
            float: right; /* Размещаем ссылку справа */
            transition: color 0.3s ease; /* Плавное изменение цвета */
            cursor: pointer; /* Курсор типа "клик" */
        }
        
        .recaptcha-container {
    width: 100%; /* Обеспечиваем, что контейнер занимает всю доступную ширину */
    display: flex;
    justify-content: center; /* Центрируем по горизонтали */
    align-items: center; /* Центрируем по вертикали */
    margin-bottom: 20px; /* Отступ снизу */
}



        .g-recaptcha {
    width: 100% !important; /* Растягиваем капчу по ширине */
    transform: scale(0.9); /* Уменьшаем размер капчи */
    transform-origin: 0 0; /* Обеспечиваем уменьшение с верхнего левого угла */
    display: block; /* Сделать элемент блочным */
}




        /* Изменение цвета при наведении */
        .formBlock .register-link:hover {
            color:rgb(5, 83, 173); /* Темнее на 10% */
        }

        .inputField--mgSyJ {
            width: calc(100% - 24px); /* Уменьшаем ширину поля */
            padding-top: 12px;
            padding-right: 6px;
            padding-bottom: 12px;
            padding-left: 16px;
            font-size: 1rem;
            font-family: "Stem", sans-serif; /* Добавляем шрифт для полей ввода */
            color: #fff;
            background: none;
            border: 1px solid #444;
            border-radius: 5px;
            outline: none;
            position: relative;
            transition: border 0.3s ease;
            margin-bottom: 10px; /* Отступ снизу */
            position: relative;
        }

        .inputField--mgSyJ:focus {
            border: 1px solid #006EEF; /* Плавная анимация при фокусировке */
        }

        .password-container {
            position: relative;
        }

        .lgn-container {
            position: relative;
        }

        .icon-eye {
            opacity: 50%;
            position: absolute;
            right: 13px; /* Сделаем иконку чуть левее */
            top: 40%; /* Подняли иконку немного выше */
            transform: translateY(-50%);
            cursor: pointer;
            z-index: 10; /* Обеспечивает, чтобы иконка была поверх поля ввода */
        }

        .icon-reg-login, .icon-reg-login {
            width: 30px;
            position: absolute;
            right: 13px; /* Сделаем иконку чуть левее */
            top: 40%; /* Подняли иконку немного выше */
            transform: translateY(-50%);
            z-index: 10; /* Обеспечивает, чтобы иконка была поверх поля ввода */
        }



        /* Кнопка входа в панель управления */
        .button {
            font-family: "Stem", sans-serif; /* Добавляем шрифт для кнопки */
            background-color: #006EEF;
            border: none;
            color: white;
            padding: 12px;
            font-size: 13px;
            border-radius: 10px;
            cursor: pointer;
            width: 100%;
            margin-bottom: 10px;
            transition: background-color 0.3s ease, transform 0.2s ease;
        }


        /* Эффект при наведении на кнопку */
        .button:hover {
            background-color: #0056b3;
            transform: scale(1.01); /* Немного увеличиваем размер при наведении */
        }

        .otstup_1, .otstup_1-removable {
            width: 100%;
            text-align: center;
            margin-top: 20px;
            margin-bottom: 20px;
            position: relative;
        }

        .line {
            width: 100%;
            text-align: center;
            margin-top: 20px;
            margin-bottom: 20px;
            position: relative;
        }

        .line::before {
            content: '';
            position: absolute;
            left: 0;
            right: 0;
            top: 50%;
            border-top: 1px solid #444;
            margin-top: -1px;
        }

        .line span {
            background-color: #222;
            padding: 0 10px;
            color: #fff;
            font-size: 0.7rem;
            position: relative;
            z-index: 1;
            opacity: 50%;
            top: -3px;
        }


        .social-buttons {
            
            display: flex;
            justify-content: center; /* Центрируем кнопки */
            gap: 20px; /* Добавляем отступы между кнопками */
            margin-top: 20px;
            margin-bottom: 20px;
        }

        .register-link-container .register-link, .register-link-container-removable .register-link {
            font-weight: 500;
            font-size: 0.8rem;
            color: #006eef;
            text-decoration: none;
            transition: color 0.3s ease;
            cursor: pointer;
        }

        .register-link-container .register-link:hover, .register-link-container-removable .register-link:hover {
            color: rgb(5, 83, 173); /* Темнее на 10% */
        }
        .footer {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            background: #121212;
            padding: 8px 0;
            text-align: center;
            font-size: 0.75rem;
            color: rgba(255,255,255,0.6);
            user-select: none;
            z-index: 1000;
            }

            .footer-link {
            color: rgba(255,255,255,0.6);
            text-decoration: none;
            margin: 0 8px;
            transition: color 0.2s ease;
            }

            .footer-link:hover {
            color: rgba(255,255,255,0.9);
            }

            .footer-separator {
            margin: 0 6px;
            color: rgba(255,255,255,0.4);
            }

            .footer-copyright {
            margin-left: 12px;
            color: rgba(255,255,255,0.5);
            }

        @media (max-width: 768px) {
            .inputField--mgSyJ {
                font-size: 0.9rem;
            }

            .social-buttons {
                flex-direction: column; /* Колонка на мобильных */
            }

            .social-button {
                width: 100%; /* Социальные кнопки будут занимать всю ширину */
                margin-right: 0;
                margin-bottom: 10px; /* Отступ снизу */
            }
        }
    #preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Темный фон */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1; /* Начальная видимость */
    transition: opacity 0.5s ease-out; /* Плавное исчезновение */
}

/* Прелоадер будет скрыт при загрузке */
#preloader.hidden {
    opacity: 0; /* Прелоадер исчезает */
}

/* Анимация для спиннера */
.spinner {
    border: 8px solid rgba(255,255,255,0.2); /* Светлый фон */
    border-top: 8px solid #006eef; /* Синий цвет для верхней части */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spinScale 1.2s ease-in-out infinite;
}

@keyframes spinScale {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

.grecaptcha-badge { 
    visibility: hidden !important;
}

.social-buttons {
    flex-direction: column;
    align-items: center; /* центрируем блок, чтобы 95% имели одинаковые отступы */
    gap: 12px;
    margin-top: 32px; /* больше отступ сверху */
}

.social-button {
    position: relative;
    border: 1px solid #393939;
    border-radius: 5px;
    width: 85%;
    padding: 12px 20px 12px 48px; /* слева место под иконку */
    background-color: #242424;
    display: flex;
    align-items: center; /* выравниваем всё по центру вертикально */
    justify-content: center; /* центрируем label относительно всей кнопки */
    gap: 10px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    opacity: 50%;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    height: 18px;
    font-weight: 300;
}

.social-button:hover {
    transform: scale(1.05);
    background-color: #444;
}

.social-button span {
    flex: 1;
    text-align: center;
    font-size: 15px;
    font-family: "Stem", sans-serif;
}

/* левый значок соц-сети */
.social-button svg.service-icon {
    position: absolute;
    left: 30px;
    width: 22px !important;
    height: 22px !important;
    
}

/* правый значок ссылки */
.social-button svg.external-icon {
    width: 18px !important;
    height: 18px !important;
    margin-left: 0; /* уже есть gap */
    opacity: 50%;
}

/* Плавная анимация для заголовка */
h2 {
    transition: transform 0.2s ease;
}

h2:hover {
    transform: scale(1.02);
}

/* Плавная анимация для блока «Ещё нет аккаунта…» */
.register-link-container {
    color: rgba(255, 255, 255, 0.295);
    text-align: center;
    transition: transform 0.2s ease;
    font-size: 12px;
}

.register-link-container:hover {
    transform: scale(1.02);
}

/* Улучшаем прелоадер: добавляем blur */
#preloader {
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

.register-link-icon {
    width: 18px;
    height: 18px;
    margin-right: 1px;
    vertical-align: middle;
    margin-bottom: 3px;
}

.external-icon {
    width: 18px;
    height: 18px;
    margin-left: 0; /* уже есть gap */
}

.label {
    display:flex;
    align-items:center;
    gap:4px; /* расстояние текст-иконка */
}

.network { font-weight: 600; }

/* ---- Новый лоадер ---- */
.loader {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-block;
  border-top: 3px solid #FFF;
  border-right: 3px solid transparent;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.legal {
  margin-top: 35px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.295);
  text-align: center;
  line-height: 1.3;
  width: 110%;
  margin-left: -20px;
  transition: transform 0.2s ease;
}

.legal:hover {
    transform: scale(1.02);
}

.legal a {
  color: inherit; /* тот же цвет, что и текст */
  text-decoration: underline;
  white-space: nowrap; /* не переносить */
}

/* Set 'Stem' as the default font on the entire page */
html, body, input, button, select, textarea, label, span, div {
    font-family: "Stem", sans-serif !important;
    font-weight: 300;
}


.social-buttons svg{width:26px;height:26px;}