/* SimpleSpy PRO - вход. Стойностите са свалени от макета
   mocup/SimpleSpy - нов дизайн.dc.html, редове 36-101. */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter/inter-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
        U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; }

body.ss-login {
    margin: 0;
    min-height: 100vh;
    background: #080e17;
    color: #e8edf5;
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

input, button { font-family: inherit; }
::placeholder { color: #5c7d99; }

/* ---- Платно ------------------------------------------------------------- */

.ss-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.ss-canvas-drift { animation: ss-drift 26s linear infinite; }

.ss-ring {
    transform-box: fill-box;
    transform-origin: center;
}

.ss-ring--1 { animation: ss-spin 240s linear infinite; }
.ss-ring--2 { animation: ss-spin-rev 180s linear infinite; }
.ss-ring--3 { animation: ss-spin 300s linear infinite; }
.ss-ring--4 { animation: ss-spin-rev 120s linear infinite, ss-breathe 9s ease-in-out infinite; }

/* Линиите се изчертават веднъж при зареждане, после стоят. */
.ss-trace {
    stroke-dasharray: 1700;
    stroke-dashoffset: 1700;
    animation: ss-draw 3s ease-out forwards;
}

.ss-trace--lead { animation-delay: .4s; }
.ss-trace--trail { animation-delay: .75s; }

.ss-runner { offset-rotate: 0deg; }

.ss-runner--lead {
    offset-path: path('M0 690L180 640L360 664L540 560L720 596L900 470L1080 512L1260 386L1440 428');
    animation: ss-path 15s linear infinite, ss-breathe 5s ease-in-out infinite;
}

.ss-runner--trail {
    offset-path: path('M0 764L180 736L360 748L540 700L720 718L900 654L1080 674L1260 612L1440 632');
    animation: ss-path 21s linear infinite;
}

.ss-scanline {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(52, 211, 153, .4), transparent);
    animation: ss-scan 7s ease-in-out infinite;
}

/* ---- Картата ------------------------------------------------------------ */

.ss-panel {
    position: relative;
    z-index: 2;
    width: 452px;
    max-width: 100%;
    padding: 34px 40px 30px;
    border: 1px solid rgba(148, 178, 208, .16);
    border-radius: 22px;
    background: rgba(9, 15, 25, .94);
    opacity: 0;
    animation: ss-up .55s ease-out .1s forwards;
}

.ss-panel-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(148, 178, 208, .12);
}

.ss-panel-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: block;
}

.ss-panel-id { min-width: 0; flex: 1; }

.ss-panel-name {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 15.5px;
    font-weight: 650;
    letter-spacing: -.3px;
}

.ss-panel-tag {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .1em;
    color: #8fa3ba;
    border: 1px solid rgba(148, 178, 208, .28);
    border-radius: 4px;
    padding: 1px 5px;
}

.ss-panel-sub { font-size: 11.5px; color: #7d92ab; }

.ss-panel-ver {
    font-size: 11px;
    color: #617a92;
    font-variant-numeric: tabular-nums;
}

.ss-panel-title {
    font-size: 26px;
    font-weight: 660;
    letter-spacing: -1px;
    margin: 24px 0 6px;
}

.ss-panel-lead {
    margin: 0 0 26px;
    color: #8fa3ba;
    font-size: 13px;
}

/* ---- Полета ------------------------------------------------------------- */

.ss-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #c6d4e4;
    margin-bottom: 7px;
}

.ss-input {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(148, 178, 208, .22);
    border-radius: 12px;
    background: rgba(255, 255, 255, .03);
    margin-bottom: 16px;
    transition: border-color .15s ease, background-color .15s ease;
}

.ss-input:focus-within {
    border-color: rgba(52, 211, 153, .5);
    background: rgba(255, 255, 255, .05);
}

.ss-input.bad { border-color: rgba(240, 128, 128, .55); }

.ss-input > i { color: #7d92ab; font-size: 13px; }

.ss-input input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14px;
    color: #eef3f8;
    min-width: 0;
}

.ss-reveal {
    border: 0;
    background: none;
    padding: 0;
    color: #7d92ab;
    font-size: 12.5px;
    cursor: pointer;
    line-height: 1;
}

.ss-reveal:hover { color: #c6d4e4; }

/* ---- Запомни ------------------------------------------------------------ */

.ss-panel-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}

.ss-remember {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #a9bccf;
    font-size: 13px;
}

/* Истинското поле стои скрито, но фокусируемо: рисуваме ключето. */
.ss-remember input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ss-remember-track {
    width: 40px;
    height: 24px;
    border-radius: 12px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    padding: 3px;
    justify-content: flex-start;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(148, 178, 208, .22);
    transition: background-color .15s ease, border-color .15s ease, justify-content .15s ease;
}

.ss-remember-knob {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex: 0 0 16px;
    display: block;
    background: #7d92ab;
    transition: transform .15s ease, background-color .15s ease;
}

.ss-remember-label { line-height: 1.4; }

.ss-remember input:checked + .ss-remember-track {
    background: rgba(52, 211, 153, .22);
    border-color: rgba(52, 211, 153, .5);
}

.ss-remember input:checked + .ss-remember-track .ss-remember-knob {
    transform: translateX(16px);
    background: #34d399;
}

.ss-remember input:focus-visible + .ss-remember-track {
    outline: 2px solid rgba(52, 211, 153, .55);
    outline-offset: 2px;
}

/* ---- Действие и подножие ------------------------------------------------ */

.ss-submit {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 12px;
    background: #0f766e;
    color: #fff;
    font-size: 14.5px;
    font-weight: 650;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: background-color .15s ease;
}

.ss-submit:hover,
.ss-submit.ready { background: #12866f; }

.ss-submit i { font-size: 12px; }

.ss-submit:focus-visible {
    outline: 2px solid rgba(52, 211, 153, .6);
    outline-offset: 3px;
}

.ss-err {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 18px;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid rgba(240, 128, 128, .32);
    background: rgba(240, 128, 128, .1);
    color: #f5b5b5;
    font-size: 12.5px;
}

.ss-panel-foot {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(148, 178, 208, .12);
    font-size: 11.5px;
    color: #7d92ab;
    line-height: 1.6;
    text-align: center;
    text-wrap: pretty;
}

/* ---- Движение ----------------------------------------------------------- */

@keyframes ss-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ss-draw { from { stroke-dashoffset: 1700; } to { stroke-dashoffset: 0; } }
@keyframes ss-scan { 0% { transform: translateY(-10%); opacity: 0; } 12% { opacity: .9; } 88% { opacity: .9; } 100% { transform: translateY(760%); opacity: 0; } }
@keyframes ss-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes ss-spin-rev { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
@keyframes ss-drift { from { transform: translateX(0); } to { transform: translateX(-240px); } }
@keyframes ss-breathe { 0%, 100% { opacity: .35; } 50% { opacity: .85; } }
@keyframes ss-path { from { offset-distance: 0%; } to { offset-distance: 100%; } }

/* На тесен екран картата заема ширината, платното остава фон. */
@media (max-width: 520px) {
    .ss-panel { padding: 26px 22px 24px; border-radius: 18px; }
    .ss-panel-title { font-size: 23px; }
}
