/* =========================
   LoveNight Auth UI - CLEAN V3 (FULL)
========================= */

:root {
    --bg-1: #1a001f;
    --bg-2: #2b0033;
    --bg-3: #0b0b10;

    --accent: #7a2cff;
    --accent-2: #c2185b;

    --text: #ffffff;
    --muted: #b9b9c9;
    --error: #ff4d6d;
}

/* =========================
   BASE LAYOUT
========================= */

.ln-auth {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;

    background: linear-gradient(
            135deg,
            var(--bg-1) 0%,
            var(--bg-2) 35%,
            var(--bg-3) 70%
    );
}

/* background glow */
.ln-auth::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
            radial-gradient(circle at 30% 20%, rgba(122,44,255,0.22), transparent 45%),
            radial-gradient(circle at 70% 80%, rgba(194,24,91,0.16), transparent 50%);
}

/* =========================
   WRAPPER
========================= */

.ln-auth__wrap {
    position: relative;
    width: 100%;
    max-width: 460px;
    z-index: 2;
}

/* =========================
   BRAND
========================= */

.ln-auth__brand {
    text-align: center;
    margin-bottom: 22px;
}

.ln-auth__logo {
    font-size: 42px;
    font-weight: 700;
    color: var(--text);
}

.ln-auth__subtitle {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
}

/* =========================
   CARD
========================= */

.ln-auth__card {
    padding: 40px;
    border-radius: 16px;

    background: rgba(24, 24, 36, 0.88);
    backdrop-filter: blur(14px);
    box-shadow: 0 25px 70px rgba(0,0,0,0.65);
}

/* =========================
   TITLE
========================= */

.ln-auth__title {
    margin-bottom: 18px;
    font-size: 24px;
    text-align: center;
    color: var(--text);
}

/* =========================
   FORM
========================= */

.ln-form__group {
    margin-bottom: 12px;
}

.ln-input {
    width: 100%;
    padding: 14px;

    background: #101018;
    border: 1px solid #2a2a3a;
    border-radius: 10px;

    color: var(--text);
    transition: 0.2s ease;
}

.ln-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(122,44,255,0.25);
}

/* =========================
   BUTTON
========================= */

.ln-btn {
    width: 100%;
    padding: 14px;

    border: none;
    border-radius: 10px;

    font-weight: 600;
    color: var(--text);
    cursor: pointer;

    background: linear-gradient(
            135deg,
            var(--accent),
            var(--accent-2)
    );

    transition: 0.2s ease;
}

.ln-btn:hover {
    transform: translateY(-1px);
}

/* =========================
   ERROR
========================= */

.ln-error {
    margin-top: 5px;
    font-size: 12px;
    color: var(--error);
}

.ln-auth__error {
    margin-bottom: 16px;
    padding: 12px;

    border-radius: 10px;
    color: #ff6b81;

    background: rgba(255, 50, 80, 0.1);
}

/* =========================
   AGREEMENT
========================= */

.ln-form__agree {
    margin-bottom: 14px;
    font-size: 12px;
    color: var(--muted);
}

/* =========================
   LINKS (ОБНОВЛЕННЫЕ - С АНИМАЦИЕЙ ПОДЧЕРКИВАНИЯ)
========================= */

.ln-auth__links {
    margin: 8px 0 14px;
    text-align: right;
}

.ln-auth__link {
    position: relative;
    font-size: 12px;
    color: var(--muted);
    text-decoration: none;
    transition: all 0.25s ease;
}

/* анимация подчеркивания */
.ln-auth__link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width 0.25s ease;
}

/* ховер */
.ln-auth__link:hover {
    color: #ffffff;
    transform: translateY(-1px);
    text-shadow: 0 0 6px rgba(122, 44, 255, 0.45), 0 0 12px rgba(194, 24, 91, 0.25);
}

.ln-auth__link:hover::after {
    width: 100%;
}

/* =========================
   FOOTER (С АНИМАЦИЕЙ)
========================= */

.ln-auth__footer {
    margin-top: 14px;
    text-align: center;
}

.ln-auth__footer a {
    position: relative;
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
    transition: all 0.25s ease;
}

.ln-auth__footer a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width 0.25s ease;
}

.ln-auth__footer a:hover {
    color: #ffffff;
    text-shadow: 0 0 6px rgba(122, 44, 255, 0.4), 0 0 10px rgba(194, 24, 91, 0.2);
}

.ln-auth__footer a:hover::after {
    width: 100%;
}

/* =========================
   CTA BANNER
========================= */

.ln-auth__cta {
    margin-top: 16px;
}

.ln-auth__banner {
    position: relative;
    display: block;
    height: 120px;

    border-radius: 14px;
    overflow: hidden;

    border: 1px solid rgba(255,255,255,0.06);
    text-decoration: none;

    transition: 0.25s ease;
}

.ln-auth__banner:hover {
    transform: translateY(-2px);
    border-color: rgba(122,44,255,0.4);
}

.ln-auth__banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8) contrast(1.1);
}

.ln-auth__banner-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px;

    background: linear-gradient(
            90deg,
            rgba(0,0,0,0.75),
            rgba(0,0,0,0.2)
    );
}

.ln-auth__banner-title {
    font-weight: 600;
    color: var(--text);
}

.ln-auth__banner-text {
    margin-top: 4px;
    font-size: 12px;
    color: #b8b8c8;
}

/* =========================
   SOCIAL AUTH - ПОЛНОСТЬЮ ВОССТАНОВЛЕННЫЙ БЛОК
========================= */

.ln-social {
    margin-top: 22px;
}

.ln-social__title {
    position: relative;
    margin-bottom: 14px;
    text-align: center;
    font-size: 12px;
    color: var(--muted);
}

.ln-social__title::before,
.ln-social__title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.ln-social__title::before {
    left: 0;
}

.ln-social__title::after {
    right: 0;
}

/* кнопки */
.ln-social__buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* базовая кнопка */
.ln-social__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: 0.25s ease;
}

/* ховер кнопки */
.ln-social__btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255,255,255,0.14);
    box-shadow: 0 6px 16px rgba(0,0,0,0.28);
}

/* иконка */
.ln-social__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.ln-social__icon svg {
    width: 18px;
    height: 18px;
}

/* текст кнопки */
.ln-social__text {
    white-space: nowrap;
}

/* =========================
   БРЕНДОВЫЕ ЦВЕТА ПРИ ХОВЕРЕ
========================= */

/* GOOGLE - с градиентным переливанием */
.ln-social__btn--google:hover {
    border-color: rgba(255, 193, 7, 0.35);
    box-shadow: 0 6px 16px rgba(0,0,0,0.28), 0 0 0 1px rgba(255, 193, 7, 0.2);
}

/* VK - с градиентным переливанием */
.ln-social__btn--vk:hover {
    border-color: rgba(76, 117, 163, 0.35);
    box-shadow: 0 6px 16px rgba(0,0,0,0.28), 0 0 0 1px rgba(76, 117, 163, 0.2);
}

/* TELEGRAM - с градиентным переливанием */
.ln-social__btn--tg:hover {
    border-color: rgba(0, 136, 204, 0.35);
    box-shadow: 0 6px 16px rgba(0,0,0,0.28), 0 0 0 1px rgba(0, 136, 204, 0.2);
}

/* =========================
   МОБИЛЬНАЯ АДАПТАЦИЯ
========================= */

@media (max-width: 600px) {

    .ln-auth {
        padding: 24px 14px;
    }

    .ln-auth__card {
        padding: 26px;
        border-radius: 14px;
    }

    .ln-auth__logo {
        font-size: 34px;
    }

    .ln-auth__subtitle {
        font-size: 12px;
    }

    .ln-auth__title {
        font-size: 20px;
    }

    .ln-auth__banner {
        height: 110px;
    }

    .ln-social__btn {
        padding: 10px 12px;
    }

    .ln-social__text {
        font-size: 12px;
    }
}

