@charset "UTF-8";
/* Inventio — оформление экранов входа (Gitea, Drone) в стиле портала. 2026-11-16, v=1.
   Подключается только на страницах входа.
   Только внешний вид: разметка и работа форм (пароль, 2FA, ключи доступа, вход через портал) не меняются.
   Если после обновления сервисов часть стилей перестанет попадать — страница
   станет частично стоковой, но продолжит работать. */

@font-face {
    font-family: "Unbounded";
    src: url("fonts/unbounded-cyrillic-wght-normal.woff2") format("woff2-variations"), url("fonts/unbounded-cyrillic-wght-normal.woff2") format("woff2");
    font-weight: 200 900; font-style: normal; font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Unbounded";
    src: url("fonts/unbounded-latin-wght-normal.woff2") format("woff2-variations"), url("fonts/unbounded-latin-wght-normal.woff2") format("woff2");
    font-weight: 200 900; font-style: normal; font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Manrope";
    src: url("fonts/manrope-cyrillic-wght-normal.woff2") format("woff2-variations"), url("fonts/manrope-cyrillic-wght-normal.woff2") format("woff2");
    font-weight: 200 800; font-style: normal; font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Manrope";
    src: url("fonts/manrope-latin-wght-normal.woff2") format("woff2-variations"), url("fonts/manrope-latin-wght-normal.woff2") format("woff2");
    font-weight: 200 800; font-style: normal; font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --ik-bg: #060f1c;
    --ik-ink: #04101e;
    --ik-text: #e8f0fa;
    --ik-muted: #93a8c3;
    --ik-line: rgba(120, 170, 230, 0.2);
    --ik-cyan: #3ad0f5;
    --ik-cyan-soft: #9fe6fb;
    --ik-red: #f2566f;
    --ik-display: "Unbounded", "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --ik-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color-scheme: dark;
}

/* ── ночное небо: градиент, звёзды (мерцают), Млечный Путь, силуэт города, падающая звезда ── */
html { background: var(--ik-bg) !important; }
body {
    min-height: 100vh;
    background:
        radial-gradient(1200px 700px at 72% -10%, rgba(58, 208, 245, 0.11), transparent 60%),
        radial-gradient(900px 600px at 0% 100%, rgba(169, 139, 250, 0.1), transparent 60%),
        linear-gradient(180deg, #040b16 0%, #071528 55%, #0a1d33 100%) fixed !important;
    color: var(--ik-text) !important;
    font-family: var(--ik-body) !important;
}
body::before { /* звёзды: россыпь из stars.svg (случайные точки), мерцают */
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: url("stars.svg") 0 0 / 1600px 1000px repeat;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 92%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 92%);
    animation: ik-twinkle 6s ease-in-out infinite alternate, ik-appear 1.6s ease-out backwards;
}
body::after { /* Млечный Путь и туманности */
    content: "";
    position: fixed;
    left: -20%; right: -20%; top: 18%;
    height: 46%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 18% 40% at 22% 55%, rgba(255, 110, 160, 0.09), transparent 70%),
        radial-gradient(ellipse 16% 36% at 74% 45%, rgba(90, 200, 255, 0.08), transparent 70%),
        radial-gradient(ellipse 50% 50% at 50% 50%, rgba(170, 185, 255, 0.11), transparent 70%);
    filter: blur(6px);
    transform: rotate(-22deg);
    animation: ik-appear 2.2s ease-out 0.2s backwards;
}
html::after { /* силуэт ночного города — тот же, что на портале */
    content: "";
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: 120px;
    z-index: 0;
    pointer-events: none;
    background: url("skyline.svg") 0 100% / auto 120px repeat-x;
    opacity: 0.85;
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, #000 45%);
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, #000 45%);
    animation: ik-city 1.3s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s backwards;
}
html::before { /* падающая звезда — раз в ~14 с */
    content: "";
    position: fixed;
    top: 12%; left: 62%;
    width: 140px; height: 1.5px;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(159, 230, 251, 0.9));
    border-radius: 2px;
    opacity: 0;
    transform: rotate(-28deg);
    animation: ik-meteor 14s linear 3s infinite;
}
@media (max-width: 719px) { html::after { height: 80px; background-size: auto 80px; } }

@keyframes ik-appear { from { opacity: 0; } }
@keyframes ik-twinkle { from { opacity: 0.55; } to { opacity: 1; } }
@keyframes ik-city { from { opacity: 0; transform: translateY(40px); } }
@keyframes ik-meteor {
    0% { opacity: 0; translate: 0 0; }
    1% { opacity: 1; }
    6% { opacity: 0; translate: -260px 140px; }
    100% { opacity: 0; translate: -260px 140px; }
}
@keyframes ik-rise { from { opacity: 0; transform: translateY(30px) scale(0.97); filter: blur(8px); } }
@keyframes ik-up { from { opacity: 0; transform: translateY(12px); } }
@keyframes ik-scan { from { top: -20%; opacity: 1; } 85% { opacity: 1; } to { top: 110%; opacity: 0; } }
@property --ik-orbit { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes ik-orbit { to { --ik-orbit: 360deg; } }

@media (prefers-reduced-motion: reduce) {
    body::before, body::after, html::after, html::before { animation: none !important; }
    html::before { display: none; }
}
