/* ========== style.css — стили для интерфейса ========== */


html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
}
* {
    box-sizing: border-box;
}
body {
    background: #093769;
    font-family: sans-serif, 'Tahoma', 'Arial';
    color: #fff;
    line-height: 1.6;
}

/* ===== СПИННЕР ДЛЯ РЕГУЛЯРНЫХ ОБНОВЛЕНИЙ ===== */

#rtm-update-spinner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgb(165 165 165 / 80%);
    border-radius: 50%;
    display: none;
    z-index: 999999;
    box-sizing: border-box;
    pointer-events: none;
}

#rtm-update-spinner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    border: 10px solid transparent;
    border-top-color: #1c4775;
    border-radius: 100%;
    animation: rtm-spin 1s cubic-bezier(0.39, 0.59, 0.54, 0.51) infinite;
    box-sizing: border-box;
}

@keyframes rtm-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== СТАНДАРТНЫЕ HTML ЭЛЕМЕНТЫ ===== */

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 20px 0;
    font-weight: 600;
    line-height: 1.3;
    color: #3e5b7b;
}

h1 { font-size: 2.2em; margin-bottom: 25px; }
h2 { font-size: 1.8em; margin-bottom: 20px; }
h3 { font-size: 1.5em; margin-bottom: 18px; }
h4 { font-size: 1.3em; margin-bottom: 15px; }
h5 { font-size: 1.1em; margin-bottom: 12px; }
h6 { font-size: 1em; margin-bottom: 10px; }

/* Параграфы */
p {
    margin: 0 0 15px 0;
    line-height: 1.6;
}

/* Ссылки */
a {
    color: #3080d7;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #1a5f9e;
    text-decoration: none;
}

/* Горизонтальная линия */
hr {
    border: none;
    height: 1px;
    background: #e0e6ed;
    margin: 20px 0;
}

/* Списки */
ul, ol {
    margin: 0 0 15px 0;
    padding-left: 20px;
}

li {
    margin-bottom: 5px;
    line-height: 1.5;
}

/* Формы и элементы ввода */
label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2d3e50;
}

/* Общие стили для всех полей ввода */
input[type=text], 
input[type=password], 
input[type=email], 
input[type=number],
input[type=url],
input[type=tel],
input[type=search],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    margin: 5px 0 15px 0;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: #333;
    transition: border-color 0.2s ease;
}

/* Фокус для всех полей ввода */
input[type=text]:focus, 
input[type=password]:focus, 
input[type=email]:focus, 
input[type=number]:focus,
input[type=url]:focus,
input[type=tel]:focus,
input[type=search]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #3080d7;
}

/* Валидация для полей ввода */
input[type=text]:invalid, 
input[type=password]:invalid, 
input[type=email]:invalid, 
input[type=number]:invalid,
input[type=url]:invalid,
input[type=tel]:invalid,
input[type=search]:invalid,
textarea:invalid {
    border-color: #e74c3c;
}

/* 51829 / Электронные площадки/Сервисы - Доработка - На tender.rostest.online в редакторе рассылки добавить поле для указания контактного email для обратных ответов / rtm_AndreevAA / Начало */
/* Отключенные поля ввода */
input[type=text]:disabled, 
input[type=password]:disabled, 
input[type=email]:disabled, 
input[type=number]:disabled,
input[type=url]:disabled,
input[type=tel]:disabled,
input[type=search]:disabled,
textarea:disabled {
    background: #f0f0f0 !important;
    color: #b8b8b8 !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}
/* 51829 / Электронные площадки/Сервисы - Доработка - На tender.rostest.online в редакторе рассылки добавить поле для указания контактного email для обратных ответов / rtm_AndreevAA / Конец */

/* Чекбоксы и радиокнопки */
input[type=checkbox],
input[type=radio] {
    width: auto;
    margin: 0 8px 0 0;
    vertical-align: middle;
}

/* Кнопки - общие стили */
button,
input[type=button],
input[type=submit],
input[type=reset] {
    padding: 12px 24px;
    background: #3080d7;
    color: #fff;
    border: none;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    transition: all 0.2s ease;
    font-family: inherit;
}

/* Состояния кнопок */
button:hover,
input[type=button]:hover,
input[type=submit]:hover,
input[type=reset]:hover {
    background: #1a5f9e;
    transform: translateY(-1px);
}

button:active,
input[type=button]:active,
input[type=submit]:active,
input[type=reset]:active {
    transform: translateY(0);
}

button:disabled,
input[type=button]:disabled,
input[type=submit]:disabled,
input[type=reset]:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Типы кнопок */
button.secondary,
input[type=button].secondary {
    background: #6c757d;
}

button.secondary:hover,
input[type=button].secondary:hover {
    background: #545b62;
}

button.danger,
input[type=button].danger {
    background: #e74c3c;
}

button.danger:hover,
input[type=button].danger:hover {
    background: #c0392b;
}

button.success,
input[type=button].success {
    background: #28a745;
}

button.success:hover,
input[type=button].success:hover {
    background: #1e7e34;
}

button.primary,
input[type=button].primary {
    background: #007bff;
}

button.primary:hover,
input[type=button].primary:hover {
    background: #0056b3;
}

/* Текстовые области */
textarea {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

/* Селекты */
select {
    cursor: pointer;
}

/* Таблицы */
table {
    border-collapse: collapse;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;  
    background: #1c5d8d0f;
    color: #676767;
    font-size: 14px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #00000014;
}

th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2d3e50;
    border-bottom: 2px solid #e0e6ed;
}

tr:hover {
    background: #f8f9fa;
}

/* Блоки кода */
code {
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

pre {
    background: #ffffff1f;
    padding: 5px 10px;
    border-radius: 8px;
    overflow-x: auto;
    border: 1px solid #87878782;
    margin: 7px;
    mix-blend-mode: revert;
}

pre code {
    background: none;
    padding: 0;
}

/* Цитаты */
blockquote {
    margin: 20px 0;
    padding: 15px 20px;
    border-left: 4px solid #3080d7;
    background: #c8e4ff;
    font-style: italic;
    color: #2665a9;
}

/* Текстовые элементы */
small {
    font-size: 0.85em;
}

strong, b {
    font-weight: 600;
}

em, i {
    font-style: italic;
}

u {
    text-decoration: underline;
}

s, strike {
    text-decoration: line-through;
}

/* ===== КОНЕЦ СТАНДАРТНЫХ ЭЛЕМЕНТОВ ===== */

/* ===== ОБЩИЕ КОМПОНЕНТЫ ===== */

/* Хедер */
.rtm-header {
    background: #1c4775;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
}

.rtm-header-left {
    display: flex;
    align-items: center;
}

.rtm-logo {
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
}

.rtm-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Навигационные кнопки */
.rtm-nav-btn {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 100px;
    padding: 6px 14px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.rtm-nav-btn:hover {
    background: #fff;
    color: #325983;
}

.rtm-nav-btn-active {
    background: #fff !important;
    color: #325983 !important;
}

.rtm-logout-btn {
    background: #00000000;
    color: #fff;
    border: 1px solid #ffffff;
    border-radius: 100px;
    padding: 6px 14px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.rtm-logout-btn:hover {
    background: #cb5252;
    border-color: #cb5252;
    color: #fff;
}

/* Футер */
.rtm-footer {
    color: #fff;
    padding: 20px;
    text-align: center;
    margin-top: 20px;
    backdrop-filter: blur(10px);
}

.rtm-footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.rtm-footer p {
    margin: 0;
    font-size: 0.9em;
    opacity: 0.8;
}

/* Основные контейнеры */
.rtm-main {
    max-width: 1000px;
    margin: 30px auto;
    background: #fff;
    color: #232323;
    border-radius: 20px;
    padding: 30px;
}

.rtm-login-box {
    width: 100%;
    max-width: 365px;
    margin: 80px auto;
    background: #fff;
    color: #232323;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
}

/* Специальные стили для формы логина */
.rtm-login-box input[type=text], 
.rtm-login-box input[type=password], 
.rtm-login-box input[type=email], 
.rtm-login-box textarea {
    width: 95%;
    padding: 7px 15px;
    margin: 7px 0 15px 0;
    border: 1px solid #bfc9d4;
    border-radius: 20px;
    font-size: 1.4em;
}

.rtm-login-box button {
    padding: 12px 24px;
    background-color: #3080d7;
    color: white;
    text-decoration: none;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    font-size: 20px;
    display: inline-block;
    outline: none;
    transition-duration: 0.25s;
}

.rtm-login-box button:hover {
    background-color: #4289d5;
}

/* Лоадер */
.rtm_loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255,255,255,0.5);
    z-index: 9999;
    text-align: center;
    font-size: 2em;
    line-height: 100vh;
    user-select: none;
}

#rtm-loader {
    font-size: 2em;
    color: #2d3e50;
    user-select: none;
}

/* reCAPTCHA */
.g-recaptcha {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0 20px 0;
}

/* Адаптивность */
@media screen and (max-width: 450px) {
    .rtm-login-box {
        max-width: unset;
        border-radius: 0;
        margin: 0px auto 80px auto;
        padding: 40px 25px 50px 25px;
    }
}

@media screen and (max-width: 350px) {
    .g-recaptcha {
        transform: scale(0.8);
    }
}

/* ========== style.css — основные стили приложения ========== */

/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ АВТОРИЗАЦИИ ===== */

.rtm-login-box {
    max-width: 365px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.rtm-login-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.rtm-login-box input[type="text"],
.rtm-login-box input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid #e0e6ed;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

.rtm-login-box input[type="text"]:focus,
.rtm-login-box input[type="password"]:focus {
    outline: none;
    border-color: #007bff;
}

button, input[type=button], input[type=submit], input[type=reset], .rtm-btn {
    user-select: none;
}

.rtm-login-box button {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.rtm-login-box button:hover {
    background: #0056b3;
}

.rtm-recaptcha-container {
    margin: 10px 0;
}

#rtm-login-error {
    color: #dc3545;
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
}
