/* Стили страницы входа. manager.css не изменяем. */

/* ─── Страница ─── */
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2fa;
    overflow: hidden;
}

/* ─── Фон ─── */
.l-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 70% 60% at 10% 0%,   rgba(52,152,219,.13) 0%, transparent 55%),
        radial-gradient(ellipse 55% 45% at 90% 100%,  rgba(142,68,173,.1)  0%, transparent 55%),
        radial-gradient(ellipse 40% 30% at 50% 50%,   rgba(26,188,156,.07) 0%, transparent 60%),
        #eef2fa;
}

.l-dots {
    position: fixed;
    inset: 0;
    z-index: 1;
    background-image: radial-gradient(rgba(100,116,139,.07) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* ─── Враппер ─── */
.l-wrap {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
    padding: 20px;
    animation: l-appear .45s cubic-bezier(.16,1,.3,1) both;
}

@keyframes l-appear {
    from { opacity: 0; transform: translateY(18px) scale(.98); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* ─── Карточка — поверх .ksy-card ─── */
.l-card {
    border-radius: 20px;
    padding: 44px 40px 40px;
    box-shadow:
        0 2px 4px rgba(0,0,0,.04),
        0 12px 40px rgba(52,152,219,.1),
        0 24px 64px rgba(0,0,0,.08);
    border: 1px solid rgba(226,232,240,.9);
}

/* ─── Логотип / шапка ─── */
.l-logo {
    text-align: center;
    margin-bottom: 36px;
}

.l-logo__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: linear-gradient(135deg, #3498db 0%, #1d6fa4 100%);
    color: #fff;
    margin-bottom: 18px;
    box-shadow:
        0 8px 24px rgba(52,152,219,.38),
        inset 0 1px 0 rgba(255,255,255,.25);
    animation: l-glow 3.5s ease-in-out infinite;
}

@keyframes l-glow {
    0%,100% { box-shadow: 0 8px 24px rgba(52,152,219,.38), inset 0 1px 0 rgba(255,255,255,.25); }
    50%      { box-shadow: 0 8px 36px rgba(52,152,219,.58), inset 0 1px 0 rgba(255,255,255,.25); }
}

.l-logo__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--ksy-text);
    margin: 0 0 6px;
    letter-spacing: -.35px;
}

.l-logo__sub {
    font-size: 13px;
    color: var(--ksy-text-muted);
    margin: 0;
}

/* ─── Поля формы (фикс layout через flex) ─── */
.l-card .ksy-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 16px;
}

/* ─── Инпут с иконкой слева ─── */
.l-input-row {
    position: relative;
}

.l-input-ico {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ksy-muted);
    pointer-events: none;
    display: flex;
    opacity: .55;
    transition: opacity .2s, color .2s;
}

.l-input-row:focus-within .l-input-ico {
    opacity: 1;
    color: var(--ksy-blue);
}

.l-card .ksy-input {
    padding-left: 42px;
    border-radius: 10px;
}

/* Пароль — с кнопкой справа */
.l-card .ksy-input.l-pw {
    padding-right: 44px;
}

.l-pw-btn {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--ksy-muted);
    display: flex;
    align-items: center;
    border-radius: 5px;
    opacity: .6;
    transition: opacity .2s;
}
.l-pw-btn:hover { opacity: 1; }

/* ─── Разделитель ─── */
.l-divider {
    height: 1px;
    background: var(--ksy-border);
    margin: 6px 0 22px;
}

/* ─── Запомнить меня ─── */
.l-row {
    display: flex;
    align-items: center;
    margin-bottom: 22px;
}

/* ─── Блок с ошибкой ─── */
.l-error {
    background: rgba(231,76,60,.07);
    border: 1px solid rgba(231,76,60,.2);
    border-radius: 10px;
    padding: 11px 14px;
    margin-bottom: 22px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--ksy-red);
    font-size: 13px;
    line-height: 1.55;
    animation: l-shake .4s cubic-bezier(.36,.07,.19,.97);
}
.l-error svg { flex-shrink: 0; margin-top: 1px; }

@keyframes l-shake {
    10%,90%    { transform: translateX(-2px); }
    20%,80%    { transform: translateX( 3px); }
    30%,50%,70%{ transform: translateX(-3px); }
    40%,60%    { transform: translateX( 3px); }
}

/* ─── Кнопка — растягиваем ksy-btn на всю ширину ─── */
.l-card .ksy-btn.l-btn-submit {
    width: 100%;
    padding: 13px;
    font-size: 14px;
    border-radius: 10px;
}

.l-card .ksy-btn.l-btn-submit:hover {
    filter: none;
}

.l-card .ksy-btn.l-btn-submit:active {
    transform: translateY(0);
}

/* ─── Футер под карточкой ─── */
.l-foot {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: rgba(100,116,139,.45);
}
