@import url("/assets/css/fonts.css");
@import url("/assets/css/style-kit.css");

.loader-page {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-sans, "Roboto", system-ui, sans-serif);
    background: var(--d-bg, #030303);
    color: var(--text, #f4f4f8);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.loader-page-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: linear-gradient(180deg, #020202 0%, #080808 50%, #020202 100%);
}

.loader-site-footer {
    flex-shrink: 0;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.loader-footer-main-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    padding: 14px 22px 16px;
    max-width: 1100px;
    margin: 0 auto;
    box-sizing: border-box;
}

.loader-footer-slot {
    flex: 1 1 0;
    min-width: 0;
}

.loader-footer-slot--left {
    text-align: left;
}

.loader-footer-slot--center {
    display: flex;
    justify-content: center;
}

.loader-footer-slot--right {
    display: flex;
    justify-content: flex-end;
}

.loader-footer-copy {
    margin: 0;
    font-size: 11px;
    line-height: 1.35;
    color: #8b92a3;
}

.loader-site-footer .loader-footer-contacts {
    align-items: center;
    text-align: center;
}

.loader-site-footer .loader-footer-contacts .panel-footer-socials {
    justify-content: center;
}

.loader-site-footer .loader-footer-lang.footer-control,
.loader-site-footer .footer-control.loader-footer-lang {
    min-height: 0;
    align-items: flex-end;
}

.loader-site-footer .loader-footer-slot--right .footer-control-label {
    text-align: right;
    width: 100%;
}

@media (max-width: 720px) {
    .loader-footer-main-row {
        flex-wrap: wrap;
        justify-content: center;
        padding: 14px 16px 16px;
    }

    .loader-footer-slot--left,
    .loader-footer-slot--center,
    .loader-footer-slot--right {
        flex: 1 1 100%;
        justify-content: center;
        text-align: center;
    }

    .loader-footer-slot--left {
        order: 3;
    }

    .loader-footer-slot--center {
        order: 1;
    }

    .loader-footer-slot--right {
        order: 2;
    }

    .loader-footer-copy {
        text-align: center;
    }

    .loader-site-footer .loader-footer-lang.footer-control {
        align-items: center;
    }

    .loader-site-footer .loader-footer-slot--right .footer-control-label {
        text-align: center;
        width: auto;
    }
}

.loader-shell {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 24px 12px;
    min-height: min(72vh, 640px);
    box-sizing: border-box;
}

.loader-center {
    width: min(520px, 100%);
    text-align: center;
    padding: 14px 12px;
}

.loader-hero-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    margin: 0 auto 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.08);
}

.loader-title {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: .2px;
    font-family: var(--font-display);
}

.loader-subtitle {
    margin: 6px 0 14px;
    color: #9aa0ad;
    font-weight: 300;
    font-size: 13px;
}

.loader-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--ui-radius-lg);
    background: rgba(9, 9, 9, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.36), inset 0 1px 0 rgba(255,255,255,0.06);
    transition: border-color .18s ease, transform .18s ease;
}
.loader-card:hover {
    border-color: var(--ui-border-strong);
    transform: translateY(-1px);
}

.loader-card-compact {
    padding: 16px;
}

.loader-gloss {
    display: none;
}

.loader-field {
    margin-bottom: 10px;
    text-align: left;
}

.loader-key-label {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin: 0;
    cursor: pointer;
    font-weight: inherit;
}

.loader-key-caption {
    display: block;
    font-size: 13px;
    color: #d2d6df;
}

.input-with-icon {
    display: flex;
    align-items: stretch;
    gap: 10px;
    border-radius: var(--ui-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(24, 24, 24, 0.96), rgba(14, 14, 14, 0.98));
    padding: 10px 12px;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
    width: 100%;
    box-sizing: border-box;
}

.input-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    align-self: center;
    opacity: .8;
    color: rgba(170, 174, 182, 0.9);
    pointer-events: none;
}

.input-ico svg {
    display: block;
}

.input-with-icon input {
    /* width:0 на flex-элементе даёт баг каретки (крошечная чёрточка) в Chromium */
    flex: 1 1 auto;
    min-width: 0;
    min-height: 40px;
    height: 40px;
    box-sizing: border-box;
    border: 0;
    background: transparent;
    padding: 0 2px;
    margin: 0;
    outline: none;
    box-shadow: none;
    color: #eceef3;
    font-size: 15px;
    line-height: 40px;
    font-family: inherit;
    caret-color: #ffffff;
    -webkit-appearance: none;
    appearance: none;
}

/* panel.css глобальные стили input дают «второе» поле — сброс с более высокой специфичностью */
body.loader-page .loader-card .input-with-icon input#licenseKey {
    min-width: 0;
    min-height: 40px;
    height: 40px;
    line-height: 40px;
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0 2px;
    margin: 0;
}

.loader-page .input-with-icon input::placeholder {
    color: rgba(180, 184, 194, 0.5);
    opacity: 1;
    transition: opacity 0.12s ease, color 0.12s ease;
}

.loader-page .input-with-icon input:focus::placeholder {
    opacity: 0;
}

.loader-page .input-with-icon input:focus,
.loader-page .input-with-icon input:focus-visible,
body.loader-page .loader-card .input-with-icon input#licenseKey:focus,
body.loader-page .loader-card .input-with-icon input#licenseKey:focus-visible {
    outline: none;
    border: none;
    box-shadow: none;
}

.input-with-icon:focus-within {
    border-color: rgba(210, 210, 210, 0.72);
    box-shadow: none;
    transform: translateY(-1px);
}

.loader-captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.loader-captcha-chip {
    flex: 1 1 auto;
    min-width: 0;
    height: 38px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(12, 12, 12, 0.95);
    display: flex;
    align-items: center;
    padding: 0 12px;
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.03),
        0 0 10px rgba(0, 0, 0, 0.24);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.loader-captcha-question {
    width: 100%;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #e7e9ee;
    letter-spacing: 0.03em;
    font-weight: 700;
    font-size: 22px;
    line-height: 1;
    height: 100%;
    text-shadow: none;
}

.loader-page .loader-captcha-refresh {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(9, 9, 9, 0.98);
    color: #d2d6df;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    box-shadow:
        0 0 8px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255,255,255,0.04);
    transition: transform .16s ease, border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.loader-page .loader-captcha-refresh:hover {
    transform: rotate(-22deg) translateY(-1px);
    border-color: rgba(210, 210, 210, 0.72);
    background: rgba(16, 16, 16, 0.98);
    box-shadow:
        0 0 14px rgba(0, 0, 0, 0.35),
        inset 0 0 0 1px rgba(220, 220, 220, 0.08);
}

.loader-captcha-refresh:active {
    transform: rotate(-16deg) translateY(0);
}

.loader-captcha-row:focus-within .loader-captcha-chip {
    border-color: rgba(210, 210, 210, 0.72);
    box-shadow:
        inset 0 0 0 1px rgba(210, 210, 210, 0.1),
        0 0 14px rgba(0, 0, 0, 0.28);
    transform: translateY(-1px);
}

.loader-captcha-refresh svg {
    width: 18px;
    height: 18px;
    display: block;
    flex-shrink: 0;
    color: #cfd3dd;
    transition: color .16s ease;
}

.loader-page .loader-captcha-refresh:hover svg {
    color: #ffffff;
}

.loader-status {
    min-height: 18px;
    font-size: 12px;
    text-align: left;
    margin: 2px 2px 12px;
    color: #9aa0ad;
}

.loader-status.ok {
    color: #46e29f;
}

.loader-status.error {
    color: #ff4d7a;
}

.loader-btn {
    border-radius: 10px;
    border: 1px solid var(--ui-btn-primary-border);
    background: var(--ui-btn-primary-bg);
    color: #ffffff;
    font-weight: 800;
    padding: 12px 16px;
    min-height: 46px;
    box-sizing: border-box;
    line-height: 1.2;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: box-shadow .18s ease, transform .18s ease, filter .18s ease;
}

.loader-btn > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    color: inherit !important;
}

.loader-btn:hover {
    box-shadow: 0 10px 24px rgba(0,0,0,0.34);
    transform: translateY(-1px);
}

.loader-btn:active {
    transform: translateY(0);
    filter: brightness(0.98);
}

.loader-btn-wide {
    width: 100%;
}

.btn-ico {
    opacity: .9;
}

.loader-brandline { display: none; }

.loader-maintenance-card {
    margin-top: 14px;
    padding: 18px 16px;
    text-align: left;
}

.loader-maintenance-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #b8c5e0;
}

.brand-left {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 12px;
    color: #c2d3f8;
}

.brand-left b {
    letter-spacing: .6px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}
.switch input { display: none; }
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(93, 211, 255, 0.28);
    transition: .18s ease;
    border-radius: 999px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    top: 2px;
    background: rgba(255,255,255,0.9);
    transition: .18s ease;
    border-radius: 50%;
}
input:checked + .slider {
    background: rgba(93, 211, 255, 0.18);
    border-color: rgba(93, 211, 255, 0.55);
}
input:checked + .slider:before {
    transform: translateX(20px);
    background: rgba(147, 220, 255, 0.95);
}

.hidden { display: none; }

@media (max-width: 640px) {
    .loader-shell {
        padding: 12px 10px 8px;
        min-height: auto;
        align-items: flex-start;
    }

    .loader-center {
        width: 100%;
        padding: 6px 2px;
    }

    .loader-title {
        font-size: 20px;
    }

    .loader-subtitle {
        margin: 6px 0 12px;
        font-size: 12px;
    }

    .loader-card {
        border-radius: 12px;
    }

    .loader-card-compact {
        padding: 12px;
    }

    .input-with-icon {
        gap: 8px;
        padding: 8px 10px;
    }

    .input-with-icon input,
    body.loader-page .loader-card .input-with-icon input#licenseKey {
        min-height: 36px;
        height: 36px;
        line-height: 36px;
        font-size: 14px;
    }

    .loader-captcha-row {
        gap: 8px;
    }

    .loader-captcha-chip,
    .loader-page .loader-captcha-refresh {
        height: 36px;
    }

    .loader-page .loader-captcha-refresh {
        width: 36px;
        min-width: 36px;
    }

    .loader-captcha-question {
        font-size: 20px;
    }

    .loader-btn {
        min-height: 42px;
        padding: 10px 14px;
        font-size: 14px;
    }
}

