/* ============ БАЗА ============ */
* {
    box-sizing: border-box;
}

body {
    position: relative;
    margin: 0;
    overflow: hidden;
    font-family: "Roboto", "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    color: #212121;
    background: #f5f7fa;
}

/* ============ ОСНОВНОЙ КОНТЕЙНЕР ============ */
.main {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100vw;
    height: 100vh;
}

/* ============ ЛЕВАЯ ПАНЕЛЬ (ФОРМА) ============ */
.left {
    background: #ffffff;
    flex-direction: column;
    display: flex;
    justify-content: center;
    align-items: center;
    height: inherit;
    flex: 1;
    padding: 24px;
    border-right: 1px solid #e0e0e0;
}

/* ============ ПРАВАЯ ПАНЕЛЬ (ИНФО) ============ */
.right {
    background: #0d4cd3;
    flex-direction: column;
    display: flex;
    justify-content: center;
    align-items: center;
    height: inherit;
    flex: 1;
    text-align: center;
    padding: 24px;
    color: #ffffff;
}

/* ============ ФОРМА ВХОДА ============ */
@keyframes ani {
    0% { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

.login-form {
    opacity: 0;
    animation: ani 1.2s forwards;
    flex-direction: column;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 420px;
    padding: 40px 36px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.login-form-editor {
    width: 100%;
}

.login-title {
    color: #0d4cd3;
    font-weight: 600;
    text-align: center;
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 28px;
    letter-spacing: 0.2px;
}

/* ============ ПОЛЯ ФОРМЫ ============ */
.form-group {
    width: 100%;
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 6px;
    font-weight: 500;
}

.login-form-name {
    border: 1px solid #d0d7de;
    border-radius: 6px;
    background: #ffffff;
    padding: 12px 14px;
    width: 100%;
    font-family: inherit;
    font-size: 15px;
    color: #212121;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-form-name::placeholder {
    color: #9aa4b2;
}

.login-form-name:hover {
    border-color: #0d4cd3;
}

.login-form-name:focus {
    border-color: #0d4cd3;
    box-shadow: 0 0 0 3px rgba(13, 76, 211, 0.12);
}

.form-login {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* ============ ПОЛЕ ПАРОЛЯ + ГЛАЗИК ============ */
.password {
    position: relative;
}

.password .login-form-name {
    padding-right: 44px; /* место под иконку */
}

.password-control {
    position: absolute;
    top: 34px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #6b7280;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s, background-color 0.2s;
}

.password-control:hover {
    color: #0d4cd3;
    background: rgba(13, 76, 211, 0.08);
}

.password-control:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 76, 211, 0.25);
}

.password-control.view {
    color: #0d4cd3;
}

/* ============ КНОПКА ============ */
.login-form-button {
    width: 100%;
    padding: 13px 16px;
    font-size: 16px;
    line-height: 1.2;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #0d4cd3;
    border-radius: 6px;
    background-color: #0d4cd3;
    color: #ffffff;
    transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-form-button:hover {
    background-color: #0a3fb0;
    border-color: #0a3fb0;
}

.login-form-button:active {
    background-color: #08339a;
    border-color: #08339a;
}

.login-form-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 76, 211, 0.25);
}

/* ============ ССЫЛКИ ПОД ФОРМОЙ ============ */
.help-menu {
    text-align: center;
    color: #0d4cd3;
    font-size: 14px;
    margin-top: 22px;
}

.help-menu-link {
    color: #0d4cd3;
    text-decoration: none;
    font-size: inherit;
    transition: color 0.2s;
}

.help-menu-link:hover {
    color: #0a3fb0;
    text-decoration: underline;
}

.help-menu-sep {
    margin: 0 12px;
    color: #c0c7d1;
}

/* ============ СООБЩЕНИЕ ОБ ОШИБКЕ ============ */
.error-message {
    position: absolute;
    left: 0;
    bottom: -18px;
    font-size: 12px;
    color: #d93025;
}

/* ============ ПРАВАЯ ЧАСТЬ ============ */
.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    max-width: 520px;
}

.hello {
    color: #ffffff;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 500;
}

.help-link {
    font-size: 18px;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.5);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}

.help-link:hover {
    color: #ffd166;
    border-color: #ffd166;
}

.about-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.about {
    color: #e6e6e6;
    font-size: 15px;
    line-height: 1.55;
    text-align: center;
    max-width: 560px;
}

.version-badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffd166;
    font-size: 13px;
    margin: 0 4px;
}

/* ============ ВЕРСИЯ ============ */
.version-editor {
    display: block;
    position: fixed;
    left: 12px;
    bottom: 10px;
    color: #6b7280;
    text-decoration: none;
    font-size: 13px;
}

.version-editor:hover {
    color: #0d4cd3;
    text-decoration: underline;
}

/* ============ АДАПТИВ ============ */
@media (max-width: 768px) {
    .main {
        flex-direction: row;
    }
    .right {
        display: none;
    }
    .left {
        flex: 1;
        border-right: none;
    }
    .login-form {
        max-width: 100%;
        padding: 32px 24px;
    }
}

@media (max-width: 420px) {
    .login-form {
        padding: 24px 18px;
        border: none;
        box-shadow: none;
    }
    .hello {
        font-size: 26px;
    }
}