/* ЛК: страницы входа — карточка и бренд в духе dumai CRM (фон: lk_login_background.css) */
@keyframes lk_auth_card_in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lk_auth_logo_halo {
    0%,
    100% {
        opacity: 0.55;
        transform: scale(1);
    }
    50% {
        opacity: 0.95;
        transform: scale(1.04);
    }
}

@keyframes lk_auth_logo_float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.lk-auth-shell {
    --lk-auth-brand-purple: #667eea;
    --lk-auth-brand-magenta: #764ba2;
    --lk-auth-violet: #667eea;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: max(1.25rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
        max(1.25rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    position: relative;
    overflow: hidden;
}

.lk-auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
    animation: lk_auth_card_in 0.55s ease-out;
}

.lk-auth-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.lk-auth-logo-wrap {
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.lk-auth-logo-wrap::before {
    content: "";
    position: absolute;
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.12));
    border-radius: 50%;
    z-index: 0;
    animation: lk_auth_logo_halo 4s ease-in-out infinite;
}

.lk-auth-logo-link {
    position: relative;
    z-index: 1;
    display: inline-block;
    line-height: 0;
}

.lk-auth-logo-img {
    height: 48px;
    width: auto;
    max-width: 100%;
    filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.28));
    animation: lk_auth_logo_float 5s ease-in-out infinite;
}

.lk-auth-title-gradient {
    font-size: clamp(1.35rem, 4.5vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin: 0 0 0.35rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lk-auth-brand-subtitle {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
    line-height: 1.4;
}

.lk-auth-tagline-pill {
    display: inline-block;
    margin: 0;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.12));
}

.lk-auth-screen-heading {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.lk-auth-card .lead {
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1.25rem;
    line-height: 1.45;
}

.lk-auth-card .error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

.lk-auth-section {
    margin-bottom: 1.35rem;
}

.lk-auth-section:last-of-type {
    margin-bottom: 0;
}

.lk-auth-section h2 {
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.lk-auth-section .hint,
.lk-auth-card > .hint {
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.lk-auth-divider {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 1.35rem 0;
}

.lk-auth-card .form-group {
    margin-bottom: 0.9rem;
}

.lk-auth-card label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.35rem;
}

.lk-auth-card input[type="email"],
.lk-auth-card input[type="password"],
.lk-auth-card input[type="text"] {
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    padding: 0.65rem 0.85rem;
    font-size: 1rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.lk-auth-card input:focus {
    outline: none;
    border-color: var(--lk-auth-violet);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.lk-auth-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: 200% 200%;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.38);
}

.lk-auth-btn:hover {
    filter: brightness(1.06);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.45);
    transform: translateY(-2px);
}

.lk-auth-btn:active {
    transform: translateY(0) scale(0.99);
}

.lk-auth-footnote {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #94a3b8;
    text-align: center;
    line-height: 1.4;
}

.lk-auth-back {
    display: block;
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.85rem;
    color: #a5b4fc;
}

.lk-auth-back a {
    color: #c7d2fe;
    font-weight: 500;
}

.lk-auth-back a:hover {
    color: #fff;
}

@media (max-width: 480px) {
    .lk-auth-card {
        padding: 1.5rem 1.2rem;
        border-radius: 16px;
    }

    .lk-auth-logo {
        font-size: 1.45rem;
    }
}
