@charset "UTF-8";
/* Inventio — окна входа как карточки портала, на живом небе портала (2026-11-17, v=1).
   Подключается на всех экранах входа вместе с login.js (он ставит окну data-sky-card и слой .card-fx и подгружает
   небо — _theme/sky.js, тот же файл, что на портале). Здесь: холсты неба; вид окна — как у карточки портала
   (фон, рамка цвета сервиса, радиус 18, уголки, огонёк по рамке и полоса заряда при наведении и вводе); кнопки —
   размеры и вид кнопок карточек портала; слой эффектов и события неба — копия portal.css, разделы 71 и 76.
   Цвет окна — --ik-acc (Gitea — зелёный, Drone — синий, Garage — оранжевый; задают gitea.css, drone.css, page.css),
   по умолчанию бирюзовый. */

/* ── холсты неба: под содержимым и поверх (вспышки событий); Млечный Путь теперь рисует небо */
.sky-scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; animation: ik-sky-in 1.6s ease-out backwards; }
@keyframes ik-sky-in { from { opacity: 0; } }
.sky-front { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 20; pointer-events: none; }
html.ik-sky body::after { display: none !important; }
/* надпись над окном — на тёмной стеклянной плашке, чтобы не сливалась с подписями планет */
html.ik-sky :is(.page-content, .section)::before, html.ik-sky .ik-brand {
    width: max-content;
    max-width: calc(100% - 32px);
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 7px 12px 6px 16px;
    border-radius: 999px;
    background: rgba(6, 16, 30, 0.8);
    box-shadow: inset 0 0 0 1px rgba(58, 208, 245, 0.25), 0 6px 18px rgba(0, 0, 0, 0.35);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
html.ik-sky [class*="welcome_wrapper__"]::before {
    left: 50%; right: auto;
    translate: -50% 0;
    width: max-content;
    padding: 7px 12px 6px 16px;
    border-radius: 999px;
    background: rgba(6, 16, 30, 0.8);
    box-shadow: inset 0 0 0 1px rgba(58, 208, 245, 0.25), 0 6px 18px rgba(0, 0, 0, 0.35);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

/* ── окно входа = карточка портала */
:is(.page-content :is(div, form):has(> :is(h1, h2, h3, h4, h5).ui.top.attached.header), .page-content.home > .tw-mb-8, [class*="welcome_login__"], .section > .box, .ik-card) {
    --accent: var(--ik-acc, #3ad0f5);
    --fxd: 0.35s;
    position: relative;
    box-sizing: border-box;
    overflow: visible !important;
    border-radius: 18px !important;
    border: 1.5px solid color-mix(in srgb, var(--accent) 55%, transparent) !important;
    background: linear-gradient(180deg, rgba(16, 34, 60, 0.92) 0%, rgba(9, 21, 39, 0.94) 100%) !important;
    box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 22%, transparent), 0 18px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    animation: ik-rise 0.95s cubic-bezier(0.16, 0.84, 0.24, 1) 0.25s backwards;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
/* наведение или ввод: по рамке бежит огонёк (как у карточек портала); появление остаётся первым в списке анимаций — не повторяется */
:is(.page-content :is(div, form):has(> :is(h1, h2, h3, h4, h5).ui.top.attached.header), .page-content.home > .tw-mb-8, [class*="welcome_login__"], .section > .box, .ik-card):is(:hover, :focus-within) {
    border-color: transparent !important;
    background:
        linear-gradient(180deg, #10223c 0%, #091527 100%) padding-box,
        conic-gradient(from var(--ik-orbit),
            color-mix(in srgb, var(--accent) 45%, transparent) 0deg 250deg,
            var(--accent) 305deg, #fff 322deg, var(--accent) 338deg,
            color-mix(in srgb, var(--accent) 45%, transparent) 360deg) border-box !important;
    box-shadow: 0 0 38px color-mix(in srgb, var(--accent) 38%, transparent), 0 26px 56px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
    animation-name: ik-rise, ik-orbit;
    animation-duration: 0.95s, 3.6s;
    animation-timing-function: cubic-bezier(0.16, 0.84, 0.24, 1), linear;
    animation-delay: 0.25s, 0s;
    animation-iteration-count: 1, infinite;
    animation-fill-mode: backwards, none;
}
/* чертёжные уголки; при наведении и вводе расходятся к краям */
:is(.page-content :is(div, form):has(> :is(h1, h2, h3, h4, h5).ui.top.attached.header), .page-content.home > .tw-mb-8, [class*="welcome_login__"], .section > .box, .ik-card)::before {
    content: "";
    position: absolute;
    inset: 9px;
    z-index: 3;
    pointer-events: none;
    --k: color-mix(in srgb, var(--accent) 85%, white 15%);
    background:
        linear-gradient(var(--k), var(--k)) left top / 16px 2px no-repeat,
        linear-gradient(var(--k), var(--k)) left top / 2px 16px no-repeat,
        linear-gradient(var(--k), var(--k)) right top / 16px 2px no-repeat,
        linear-gradient(var(--k), var(--k)) right top / 2px 16px no-repeat,
        linear-gradient(var(--k), var(--k)) left bottom / 16px 2px no-repeat,
        linear-gradient(var(--k), var(--k)) left bottom / 2px 16px no-repeat,
        linear-gradient(var(--k), var(--k)) right bottom / 16px 2px no-repeat,
        linear-gradient(var(--k), var(--k)) right bottom / 2px 16px no-repeat;
    opacity: 0.55;
    filter: drop-shadow(0 0 4px var(--k));
    transition: inset 0.3s ease, opacity 0.3s ease;
}
:is(.page-content :is(div, form):has(> :is(h1, h2, h3, h4, h5).ui.top.attached.header), .page-content.home > .tw-mb-8, [class*="welcome_login__"], .section > .box, .ik-card):is(:hover, :focus-within)::before { inset: 4px; opacity: 1; }
/* полоса заряда по нижнему краю — заполняется при наведении и вводе (вместо прежнего сканера: его делает слой эффектов) */
:is(.page-content :is(div, form):has(> :is(h1, h2, h3, h4, h5).ui.top.attached.header), .page-content.home > .tw-mb-8, [class*="welcome_login__"], .section > .box, .ik-card)::after {
    content: "";
    position: absolute;
    left: 22px; right: 22px; top: auto; bottom: 0;
    height: 2px;
    z-index: 4;
    border-radius: 2px;
    pointer-events: none;
    mix-blend-mode: normal;
    background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 20%, transparent), var(--accent) 70%, #fff);
    box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 60%, transparent);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
    animation: none;
}
:is(.page-content :is(div, form):has(> :is(h1, h2, h3, h4, h5).ui.top.attached.header), .page-content.home > .tw-mb-8, [class*="welcome_login__"], .section > .box, .ik-card):is(:hover, :focus-within)::after { transform: scaleX(1); }

/* ── кнопки — как у карточек портала: основная залита цветом окна, вторичная — контур */
:is(.page-content .ui.primary.button:not(.basic), .page-content .ui.red.button:not(.basic), [class*="welcome_btn__"], .section .button:is(.is-primary, .is-link, .is-info), .ik-btn:not(.ik-ghost), .page-content.home a.ik-home-btn) {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: 50px;
    padding: 0 26px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: var(--accent, var(--ik-acc, #3ad0f5)) !important;
    color: #04101e !important;
    font-family: var(--ik-body) !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    letter-spacing: 0.01em !important;
    text-transform: none !important;
    box-shadow: 0 0 22px color-mix(in srgb, var(--accent, var(--ik-acc, #3ad0f5)) 42%, transparent), inset 0 -3px 0 rgba(0, 0, 0, 0.18) !important;
    filter: none;
    transition: transform 0.15s ease, box-shadow 0.25s ease, filter 0.2s ease;
}
:is(.page-content .ui.primary.button:not(.basic), .page-content .ui.red.button:not(.basic), [class*="welcome_btn__"], .section .button:is(.is-primary, .is-link, .is-info), .ik-btn:not(.ik-ghost), .page-content.home a.ik-home-btn):hover {
    filter: brightness(1.1);
    box-shadow: 0 0 32px color-mix(in srgb, var(--accent, var(--ik-acc, #3ad0f5)) 60%, transparent), inset 0 -3px 0 rgba(0, 0, 0, 0.18) !important;
}
/* один косой блик при наведении */
:is(.page-content .ui.primary.button:not(.basic), .page-content .ui.red.button:not(.basic), [class*="welcome_btn__"], .section .button:is(.is-primary, .is-link, .is-info), .ik-btn:not(.ik-ghost), .page-content.home a.ik-home-btn)::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: 0; right: auto;
    inset: 0 auto 0 0;
    width: 60%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.5) 50%, transparent 100%);
    transform: translateX(-130%) skewX(-12deg);
    transition: none;
}
:is(.page-content .ui.primary.button:not(.basic), .page-content .ui.red.button:not(.basic), [class*="welcome_btn__"], .section .button:is(.is-primary, .is-link, .is-info), .ik-btn:not(.ik-ghost), .page-content.home a.ik-home-btn):hover::after {
    transform: translateX(260%) skewX(-12deg);
    transition: transform 0.75s ease-out;
}
:is(.page-content .ui.basic.button, .section .button:is(.is-danger, .is-light, .is-white), .ik-btn.ik-ghost) {
    min-height: 50px;
    padding: 0 22px !important;
    border-radius: 12px !important;
    border: 1.5px solid color-mix(in srgb, var(--accent, var(--ik-acc, #3ad0f5)) 70%, transparent) !important;
    background: color-mix(in srgb, var(--accent, var(--ik-acc, #3ad0f5)) 10%, transparent) !important;
    box-shadow: none !important;
    color: var(--ik-text) !important;
    font-family: var(--ik-body) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
:is(.page-content .ui.basic.button, .section .button:is(.is-danger, .is-light, .is-white), .ik-btn.ik-ghost):hover {
    background: color-mix(in srgb, var(--accent, var(--ik-acc, #3ad0f5)) 22%, transparent) !important;
    border-color: var(--accent, var(--ik-acc, #3ad0f5)) !important;
    box-shadow: 0 0 18px color-mix(in srgb, var(--accent, var(--ik-acc, #3ad0f5)) 30%, transparent) !important;
}
:is(.page-content .ui.button, [class*="welcome_btn__"], .section .button, .ik-btn, .page-content.home a.ik-home-btn):active { transform: scale(0.97); }

/* ── слой эффектов карточки — копия portal.css, раздел 71: проявление, рамка, сканер, течение света, вспышка */
.card-fx { position: absolute; inset: 0; z-index: 5; border-radius: inherit; pointer-events: none; overflow: hidden; }
.card-fx > i { position: absolute; inset: 0; border-radius: inherit; }
.fx-veil {
    visibility: hidden;
    background: rgba(6, 16, 30, 0.3);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
    animation: fx-veil 1.15s ease-out var(--fxd, 0.9s) backwards;
}
@keyframes fx-veil { from { visibility: visible; opacity: 1; } to { visibility: visible; opacity: 0; } }
.fx-trace, .fx-flow, .fx-flash {
    padding: 2px;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
}
@property --trace { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.fx-trace {
    visibility: hidden;
    background: conic-gradient(from -90deg, var(--accent) 0deg, #fff calc(var(--trace) - 3deg), var(--accent) var(--trace), transparent var(--trace));
    animation: fx-trace 1.3s cubic-bezier(0.5, 0, 0.25, 1) calc(var(--fxd, 0.9s) + 0.1s) backwards;
}
@keyframes fx-trace {
    from { visibility: visible; --trace: 0deg; opacity: 1; }
    78% { visibility: visible; --trace: 360deg; opacity: 1; }
    to { visibility: visible; --trace: 360deg; opacity: 0; }
}
.fx-scan {
    visibility: hidden;
    mix-blend-mode: screen;
    background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--accent) 45%, transparent) 44%, rgba(255, 255, 255, 0.85) 50%,
        color-mix(in srgb, var(--accent) 45%, transparent) 56%, transparent 100%) 0 0 / 100% 18% no-repeat;
    animation: fx-scan 1.05s cubic-bezier(0.45, 0, 0.2, 1) calc(var(--fxd, 0.9s) + 0.25s) backwards;
}
@keyframes fx-scan { from { visibility: visible; background-position: 0 -25%; } to { visibility: visible; background-position: 0 125%; } }
@property --flow { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.fx-flow {
    opacity: 0.6;
    background: conic-gradient(from var(--flow),
        transparent 0deg, color-mix(in srgb, var(--accent) 85%, white 15%) 45deg, transparent 100deg,
        transparent 180deg, color-mix(in srgb, var(--accent) 85%, white 15%) 225deg, transparent 280deg);
    transition: opacity 0.6s ease;
    animation: fx-flow 7s linear infinite;
}
@keyframes fx-flow { to { --flow: 360deg; } }
[data-sky-card]:is(:hover, :focus-within) .fx-flow { opacity: 0; }
.fx-flash { opacity: 0; background: linear-gradient(color-mix(in srgb, var(--accent) 70%, white 30%), color-mix(in srgb, var(--accent) 70%, white 30%)); }
.card-fx::after { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; box-shadow: inset 0 0 46px color-mix(in srgb, var(--accent) 45%, transparent); }
@keyframes fx-flash { 0% { opacity: 0; } 14% { opacity: 1; } 100% { opacity: 0; } }

/* ── небо задевает окно — копия portal.css, раздел 76: отсвет болида, вспышка удара, пробоина, раскалённый край при захвате */
.fx-back {
    mix-blend-mode: screen;
    background: radial-gradient(circle at var(--bx, 50%) var(--by, 50%), rgba(255, 240, 215, calc(var(--ba, 0) * 0.8)) 0, rgba(255, 170, 90, calc(var(--ba, 0) * 0.32)) 70px, transparent 200px);
}
.card-fx.strike::after { box-shadow: inset 0 0 70px rgba(255, 176, 96, 0.6), inset 0 0 0 2px rgba(255, 222, 176, 0.75); animation: fx-flash 1.2s ease-out; }
.fx-tidal { transition: opacity 0.12s linear; }
.card-fx > i.fx-hole { inset: auto; width: 0; height: 0; border-radius: 0; }
.fx-hole > * { position: absolute; left: 0; top: 0; translate: -50% -50%; pointer-events: none; }
.hl-glow {
    width: 100px; height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 250, 235, 1) 0 13%, rgba(255, 204, 128, 0.85) 23%, rgba(255, 124, 62, 0.45) 40%, rgba(255, 80, 40, 0) 68%);
    mix-blend-mode: screen;
    opacity: 0;
    animation: hl-glow 3s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
@keyframes hl-glow {
    0% { opacity: 0; scale: 0.2; filter: brightness(2.2); }
    5% { opacity: 1; scale: 1.3; filter: brightness(2); }
    25% { opacity: 0.95; scale: 0.9; filter: brightness(1.1); }
    70% { opacity: 0.5; scale: 0.7; filter: brightness(0.8) hue-rotate(-18deg); }
    100% { opacity: 0; scale: 0.5; filter: brightness(0.6) hue-rotate(-25deg); }
}
.hl-pit {
    width: 30px; height: 30px;
    background:
        radial-gradient(1.3px 1.3px at 32% 38%, #fff 99%, transparent),
        radial-gradient(1px 1px at 64% 58%, #cfe9ff 99%, transparent),
        radial-gradient(1px 1px at 46% 70%, #fff 99%, transparent),
        radial-gradient(0.9px 0.9px at 68% 32%, #ffe6c4 99%, transparent),
        radial-gradient(circle, #02050c 0 50%, #1b0c10 60%, #ff8a3d 72%, #ffe2b0 81%, rgba(255, 200, 140, 0) 90%);
    clip-path: polygon(var(--pp));
    scale: 0;
    animation: hl-pit 3.5s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}
@keyframes hl-pit {
    0% { scale: 0; filter: brightness(1.8); }
    6% { scale: 1.15; filter: brightness(1.6); }
    14% { scale: 1; filter: brightness(1.3); }
    48% { filter: brightness(0.95) hue-rotate(-12deg); }
    70% { scale: 1; filter: brightness(0.8) hue-rotate(-22deg); }
    100% { scale: 0; filter: brightness(1.3) hue-rotate(165deg); }
}
.hl-cracks { width: 130px; height: 130px; overflow: visible; filter: drop-shadow(0 0 2px rgba(159, 230, 251, 0.8)); animation: hl-fade 3.3s ease-in forwards; }
.hl-cracks path {
    fill: none;
    stroke: rgba(225, 246, 255, 0.85);
    stroke-width: 0.9;
    stroke-linecap: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: hl-crack 0.24s cubic-bezier(0.2, 0.8, 0.3, 1) 0.02s forwards;
}
@keyframes hl-crack { to { stroke-dashoffset: 0; } }
@keyframes hl-fade { 0%, 68% { opacity: 1; } 100% { opacity: 0; } }
.hl-ring {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 236, 205, 0.9);
    box-shadow: 0 0 12px rgba(255, 170, 90, 0.7);
    opacity: 0;
    animation: hl-ring 0.65s cubic-bezier(0.1, 0.7, 0.3, 1) forwards;
}
@keyframes hl-ring { from { scale: 0.2; opacity: 1; } to { scale: 4.4; opacity: 0; border-width: 0.5px; } }
.hl-seal {
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 1.5px solid #3ad0f5;
    box-shadow: 0 0 14px rgba(58, 208, 245, 0.75), inset 0 0 10px rgba(58, 208, 245, 0.5);
    opacity: 0;
    animation: hl-seal 1.2s cubic-bezier(0.4, 0, 0.2, 1) 2.35s forwards;
}
@keyframes hl-seal { 0% { opacity: 0; scale: 2.4; } 25% { opacity: 1; } 85% { opacity: 0.9; scale: 0.45; } 100% { opacity: 0; scale: 0.2; } }
.hl-spark {
    width: 28px; height: 28px;
    opacity: 0;
    background:
        radial-gradient(circle, #fff 0 8%, rgba(159, 230, 251, 0.8) 16%, transparent 46%),
        linear-gradient(90deg, transparent 47%, rgba(220, 248, 255, 0.9) 50%, transparent 53%),
        linear-gradient(0deg, transparent 47%, rgba(220, 248, 255, 0.9) 50%, transparent 53%);
    animation: hl-spark 0.6s ease-out 3.25s forwards;
}
@keyframes hl-spark { 0% { opacity: 0; scale: 0.3; rotate: 0deg; } 30% { opacity: 1; scale: 1.2; } 100% { opacity: 0; scale: 0.6; rotate: 45deg; } }
.fx-hole > .hl-tag {
    left: 34px; top: -40px;
    translate: 0 -50%;
    display: grid;
    font-style: normal;
    font-family: var(--ik-display);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.22em;
    white-space: nowrap;
}
.fx-hole > .hl-tag.hl-left { left: auto; right: 34px; }
.hl-tag::before { content: ""; position: absolute; top: 100%; right: 100%; width: 22px; height: 1px; background: rgba(255, 180, 105, 0.7); rotate: -45deg; transform-origin: right center; opacity: 0; animation: hl-tag-b 3.4s linear 0.2s forwards; }
.hl-tag.hl-left::before { right: auto; left: 100%; rotate: 45deg; transform-origin: left center; }
.hl-tag span { grid-area: 1 / 1; padding: 3px 7px; border-radius: 6px; background: rgba(6, 16, 30, 0.88); opacity: 0; }
.hl-tag span:first-child { color: #ffb469; border: 1px solid rgba(255, 180, 105, 0.55); animation: hl-tag-a 2.25s linear 0.2s forwards; }
.hl-tag span:last-child { color: #9fe6fb; border: 1px solid rgba(58, 208, 245, 0.55); animation: hl-tag-c 1.5s ease-out 2.5s forwards; }
@keyframes hl-tag-a { 0% { opacity: 0; translate: -6px 0; } 8% { opacity: 1; translate: 0 0; } 20% { opacity: 0.35; } 30% { opacity: 1; } 42% { opacity: 0.35; } 52%, 90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes hl-tag-b { 0%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes hl-tag-c { 0% { opacity: 0; } 15%, 75% { opacity: 1; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
    .sky-front, .card-fx { display: none; }
    .sky-scene { animation: none; }
    :is(.page-content :is(div, form):has(> :is(h1, h2, h3, h4, h5).ui.top.attached.header), .page-content.home > .tw-mb-8, [class*="welcome_login__"], .section > .box, .ik-card) { animation: none !important; }
}
