/*
 * login.css - extracted from login.php
 */


        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        html, body { height: 100%; font-family: 'Golos Text', sans-serif; overflow: hidden; }
        .is-hidden { display: none; }

        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(18px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        .lp-wrap { display: flex; height: 100vh; overflow: hidden; }

        /* ── Левая панель ── */
        .lp-left {
            width: 50%;
            background: #ffffff;
            padding: 56px 72px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow-y: auto;
        }
        .lp-form {
            width: 100%;
            max-width: 300px;
            display: flex;
            flex-direction: column;
        }
        .lp-accent-top {
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 3px;
            background: #4a8fd4;
        }
        .lp-logo {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 32px;
            animation: fadeInUp 0.55s ease both 0s;
        }
        .lp-logo-icon {
            width: 30px; height: 30px;
            border-radius: 7px;
            background: #4a8fd4;
            display: flex; align-items: center; justify-content: center;
            flex-shrink: 0;
        }
        .lp-logo-text {
            font-size: 16px;
            font-weight: 800;
            color: #0f1926;
            letter-spacing: -0.3px;
        }
        .lp-title {
            font-size: 18px;
            font-weight: 900;
            color: #0f1926;
            letter-spacing: -0.5px;
            margin-bottom: 4px;
            animation: fadeInUp 0.55s ease both 0.12s;
        }
        .lp-subtitle {
            font-size: 12px;
            color: #8a93a8;
            line-height: 1.6;
            margin-bottom: 20px;
            animation: fadeInUp 0.55s ease both 0.18s;
        }
        /* Сообщение «учётная запись отключена» (login.php?disabled=1) */
        .lp-notice {
            background: #fdecec;
            border: 1px solid #f5bfbf;
            color: #c0392b;
            border-radius: 9px;
            padding: 10px 14px;
            font-size: 13px;
            line-height: 1.5;
            margin-bottom: 18px;
            animation: fadeInUp 0.55s ease both 0.18s;
        }
        .lp-notice--ok   { background: #e8f6ef; border-color: #b7e2cb; color: #1f7a4d; }
        .lp-notice--info { background: #eef5fc; border-color: #c9ddf2; color: #2f6aa8; }
        .lp-btn-primary {
            width: 100%;
            background: #4a8fd4;
            color: #ffffff;
            border: none;
            border-radius: 9px;
            padding: 10px;
            font-size: 14px;
            font-weight: 700;
            font-family: 'Golos Text', sans-serif;
            box-shadow: 0 4px 20px rgba(74,143,212,0.22);
            transition: all 0.18s ease;
            cursor: pointer;
            animation: fadeInUp 0.55s ease both 0.22s;
        }
        .lp-btn-primary:hover {
            background: #3577bc;
            transform: translateY(-1px);
            box-shadow: 0 6px 24px rgba(74,143,212,0.30);
        }
        .lp-btn-secondary {
            width: 100%;
            background: #f4f6f9;
            color: #4a5568;
            border: 1.5px solid #e4e7ec;
            border-radius: 9px;
            padding: 9px;
            font-size: 12px;
            font-weight: 600;
            font-family: 'Golos Text', sans-serif;
            margin-top: 8px;
            cursor: pointer;
            text-decoration: none;
            display: block;
            text-align: center;
            transition: all 0.18s ease;
            animation: fadeInUp 0.55s ease both 0.28s;
        }
        .lp-btn-secondary:hover {
            background: #eef0f3;
            border-color: #3577bc;
            color: #4a5568;
            text-decoration: none;
        }
        .lp-links {
            margin-top: 14px;
            padding-top: 12px;
            border-top: 1px solid #e4e7ec;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        .lp-links a,
        .lp-links button {
            font-size: 12px;
            color: #c8cdd8;
            text-decoration: none;
            background: none;
            border: none;
            padding: 0;
            cursor: pointer;
            font-family: 'Golos Text', sans-serif;
            text-align: left;
            transition: color 0.18s;
        }
        .lp-links a:hover,
        .lp-links button:hover { color: #8a93a8; }
        .lp-footer {
            font-size: 11px;
            color: #c8cdd8;
            margin-top: 20px;
        }

        /* ── Правая панель ── */
        .lp-right {
            width: 50%;
            background: #f4f6f9;
            padding: 48px 72px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }
        .lp-grid {
            position: absolute;
            inset: 0;
            pointer-events: none;
        }
        .lp-brand-img {
            position: absolute;
            bottom: 0;
            right: -20px;
            height: 67.5vh;
            opacity: 0.85;
            pointer-events: none;
            user-select: none;
            z-index: 0;
        }
        .lp-right-center {
            position: relative;
            z-index: 1;
            animation: fadeInUp 0.55s ease both 0.1s;
        }
        .lp-overline {
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: #4a8fd4;
            margin-bottom: 16px;
        }
        .lp-h2 {
            font-size: clamp(36px, 4.5vw, 62px);
            font-weight: 900;
            letter-spacing: -2px;
            line-height: 1.05;
            margin-bottom: 20px;
        }
        .lp-h2-dark  { color: #0f1926; }
        .lp-h2-muted { color: #c8cdd8; }
        .lp-desc {
            font-size: 14px;
            color: #8a93a8;
            line-height: 1.7;
            max-width: 380px;
        }
        .lp-metrics {
            position: relative;
            z-index: 1;
            display: flex;
            gap: 32px;
            animation: fadeInUp 0.55s ease both 0.2s;
        }
        .lp-metric-val {
            font-size: 22px;
            font-weight: 900;
            color: #0f1926;
            letter-spacing: -0.5px;
            margin-bottom: 2px;
        }
        .lp-metric-label { font-size: 12px; color: #8a93a8; }

        /* ── Login modal ── */
        .lm-dialog { max-width: 400px; }
        .lm-content {
            border: none;
            border-radius: 14px;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(15,25,38,0.18);
            font-family: 'Golos Text', sans-serif;
        }
        .lm-logo-img {
            width: auto;
            filter: brightness(0) invert(1);
        }
        .lm-logo-img--sm { height: 18px; }
        .lm-logo-img--md { height: 22px; }
        .lm-accent-bar { height: 3px; background: #4a8fd4; }
        .lm-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 20px 24px 0;
        }
        .lm-header-logo { display: flex; align-items: center; gap: 8px; }
        .lm-logo-icon {
            width: 26px; height: 26px;
            border-radius: 6px;
            background: #4a8fd4;
            display: flex; align-items: center; justify-content: center;
            flex-shrink: 0;
        }
        .lm-logo-text {
            font-size: 14px; font-weight: 800;
            color: #0f1926; letter-spacing: -0.3px;
        }
        .lm-close {
            background: none; border: none;
            color: #c8cdd8; font-size: 22px; line-height: 1;
            cursor: pointer; padding: 0;
            transition: color 0.18s;
        }
        .lm-close:hover { color: #8a93a8; }
        .lm-body { padding: 20px 24px 28px; }
        .lm-title {
            font-size: 18px; font-weight: 900;
            color: #0f1926; letter-spacing: -0.5px;
            margin-bottom: 4px;
        }
        .lm-subtitle {
            font-size: 12px; color: #8a93a8;
            margin-bottom: 22px;
        }
        .lm-group { margin-bottom: 14px; }
        .lm-label {
            display: block;
            font-size: 12px; font-weight: 600;
            color: #4a5568; margin-bottom: 6px;
        }
        .lm-input {
            width: 100%;
            padding: 10px 12px;
            border: 1.5px solid #e4e7ec;
            border-radius: 8px;
            font-size: 14px; color: #0f1926;
            font-family: 'Golos Text', sans-serif;
            transition: border-color 0.18s, box-shadow 0.18s;
            outline: none;
            background: #fff;
        }
        .lm-input:focus {
            border-color: #4a8fd4;
            box-shadow: 0 0 0 3px rgba(74,143,212,0.12);
        }
        .lm-submit {
            width: 100%;
            background: #4a8fd4; color: #fff;
            border: none; border-radius: 9px;
            padding: 11px;
            font-size: 14px; font-weight: 700;
            font-family: 'Golos Text', sans-serif;
            cursor: pointer;
            box-shadow: 0 4px 20px rgba(74,143,212,0.22);
            transition: all 0.18s ease;
            margin-top: 8px;
        }
        .lm-submit--no-margin { margin-top: 0; }
        .lm-submit:hover { background: #3577bc; transform: translateY(-1px); }
        .lm-actions-row {
            display: flex;
            gap: 10px;
            margin-top: 8px;
        }
        .lm-cancel {
            flex: 1;
            background: #f4f6f9; color: #4a5568;
            border: 1.5px solid #e4e7ec; border-radius: 9px;
            padding: 11px;
            font-size: 14px; font-weight: 600;
            font-family: 'Golos Text', sans-serif;
            cursor: pointer;
            transition: all 0.18s ease;
        }
        .lm-cancel:hover { background: #eef0f3; border-color: #3577bc; }
        .lm-submit { flex: 2; }

        /* ── Mobile ── */
        @media (max-width: 768px) {
            html, body { overflow: auto; }

            .lp-wrap { flex-direction: column; height: 100%; min-height: 100vh; }

            .lp-left {
                width: 100%;
                flex: 1;
                padding: 32px 28px;
                justify-content: center;
            }

            .lp-right { display: none; }

            .lp-form { max-width: 100%; }

            .lp-logo { margin-bottom: 40px; }

            .lp-title { font-size: 22px; }

            .lp-subtitle { font-size: 13px; margin-bottom: 24px; }

            .lp-btn-primary { padding: 13px; font-size: 15px; }

            /* Модалка логина — по центру, полная ширина с отступами */
            #loginModal .modal-dialog,
            #restore_password .modal-dialog {
                max-width: 100% !important;
                width: 100%;
                margin: 0;
                padding: 0 16px;
            }

            #loginModal .lm-content,
            #restore_password .lm-content { border-radius: 14px; }
        }

