/*
 * Guest landing page (welcome2.twig) - modern design.
 *
 * Loaded only by welcome2.twig, on top of the generated site stylesheet, and
 * scoped to body.lp so the other guest pages keep their look.
 *
 *   .lp-hero   headline, benefits, live members + the register card
 *   .lp-card   the register form (Vue "user-register" component, unchanged)
 *   .lp-steps  "how it works"
 *   .lp-cta    closing call to action
 *
 * Colours are variables: change them here to re-theme a site.
 */

body.lp {
    --lp-ink: #1c1f2b;
    --lp-muted: #5f667a;
    --lp-line: #e4e7ef;
    --lp-soft: #f5f6fa;
    --lp-accent: #ff3d6e;
    --lp-accent-2: #ff7a3d;
    --lp-live: #2fd27f;
    --lp-hero-1: #160f2a;
    --lp-hero-2: #2b1140;
    --lp-hero-3: #45102f;
    --lp-radius: 18px;
    background: #fff;
}

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    body.lp * { animation: none !important; transition: none !important; }
}

/* The sidebar is gone on this page: the content uses the full width. */
body.lp .page-container.main-page-container > #main { width: 100%; }

/* ------------------------------------------------------------------ Hero */

body.lp .lp-hero {
    position: relative;
    overflow: hidden;
    padding: 28px 16px 32px;
    color: #fff;
    background:
        radial-gradient(720px 420px at 88% -10%, rgba(255, 61, 110, .42), transparent 62%),
        radial-gradient(620px 460px at -8% 108%, rgba(124, 77, 255, .38), transparent 60%),
        linear-gradient(135deg, var(--lp-hero-1), var(--lp-hero-2) 55%, var(--lp-hero-3));
}

body.lp .lp-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    max-width: 1180px;
    margin: 0 auto;
}

body.lp .lp-hero__copy { min-width: 0; }

body.lp .lp-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    max-width: 100%;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 13.5px;
    line-height: 1.3;
}

body.lp .lp-badge strong { font-weight: 700; font-variant-numeric: tabular-nums; }

body.lp .lp-badge__dot,
body.lp .lp-live__photo::after {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--lp-live);
}

body.lp .lp-badge__dot {
    box-shadow: 0 0 0 0 rgba(47, 210, 127, .6);
    animation: lp-pulse 1.8s ease-out infinite;
}

@keyframes lp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(47, 210, 127, .6); }
    100% { box-shadow: 0 0 0 10px rgba(47, 210, 127, 0); }
}

body.lp .lp-title {
    margin: 18px 0 12px;
    color: #fff;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.02em;
    text-wrap: balance;
}

body.lp .lp-title span {
    background: linear-gradient(90deg, #ff6b93, #ffa66b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body.lp .lp-subtitle {
    max-width: 560px;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, .82);
    font-size: 16px;
    line-height: 1.55;
}

body.lp .lp-benefits {
    display: grid;
    gap: 10px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

body.lp .lp-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: rgba(255, 255, 255, .86);
    font-size: 15px;
    line-height: 1.45;
}

body.lp .lp-benefits li strong { color: #fff; font-weight: 700; }

body.lp .lp-benefits li i {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(47, 210, 127, .2);
    color: var(--lp-live);
    font-size: 12px;
    line-height: 22px;
    text-align: center;
}

/* Members who are live right now */
body.lp .lp-live { margin: 0 0 22px; }

body.lp .lp-live__label {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, .62);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

body.lp .lp-live__list {
    display: flex;
    gap: 14px;
    margin: 0 -16px;
    padding: 4px 16px 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

body.lp .lp-live__list::-webkit-scrollbar { display: none; }

body.lp .lp-live__item {
    flex: 0 0 auto;
    width: 68px;
    color: #fff;
    text-align: center;
    text-decoration: none !important;
}

body.lp .lp-live__photo {
    position: relative;
    display: block;
    width: 64px;
    height: 64px;
    margin: 0 auto 6px;
    border: 2px solid rgba(255, 255, 255, .85);
    border-radius: 50%;
    background: #3a2a4d center / cover no-repeat;
    box-shadow: 0 0 0 3px rgba(255, 61, 110, .55);
    transition: transform .15s ease, box-shadow .15s ease;
}

body.lp .lp-live__photo::after {
    content: "";
    position: absolute;
    right: 1px;
    bottom: 1px;
    width: 13px;
    height: 13px;
    border: 2px solid var(--lp-hero-2);
}

body.lp .lp-live__item:hover .lp-live__photo,
body.lp .lp-live__item:focus .lp-live__photo {
    transform: translateY(-2px);
    box-shadow: 0 0 0 3px var(--lp-accent), 0 10px 22px rgba(0, 0, 0, .35);
}

body.lp .lp-live__name {
    display: block;
    overflow: hidden;
    color: rgba(255, 255, 255, .9);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.lp .lp-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
}

body.lp .lp-trust span { white-space: nowrap; }
body.lp .lp-trust strong { color: #fff; font-variant-numeric: tabular-nums; }
body.lp .lp-trust i { margin-right: 5px; color: rgba(255, 255, 255, .55); }

/* --------------------------------------------------------- Register card */

body.lp .lp-hero__form { min-width: 0; }

body.lp .lp-card {
    position: relative;
    width: auto;
    margin: 0;
    border-radius: var(--lp-radius);
    background: #fff;
    color: var(--lp-ink);
    box-shadow: 0 24px 60px rgba(8, 4, 20, .45);
    scroll-margin-top: 110px;
}

body.lp .lp-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 5px;
    border-radius: var(--lp-radius) var(--lp-radius) 0 0;
    background: linear-gradient(90deg, var(--lp-accent), var(--lp-accent-2));
}

body.lp .lp-card form { margin: 0; padding: 26px 20px 20px; }

body.lp .lp-card h3 {
    margin: 0 0 4px;
    color: var(--lp-ink);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.01em;
    text-align: center;
}

body.lp .lp-card__note {
    margin: 0 0 18px;
    color: var(--lp-muted);
    font-size: 13px;
    text-align: center;
}

body.lp .lp-card .form-group { margin-bottom: 12px; }

body.lp .lp-card .form-control:not([type=checkbox]) {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--lp-line);
    border-radius: 12px;
    background: var(--lp-soft);
    box-shadow: none;
    color: var(--lp-ink);
    font-size: 15px;
    line-height: 46px;
    transition: border-color .12s ease, background-color .12s ease, box-shadow .12s ease;
}

body.lp .lp-card .form-control:not([type=checkbox])::placeholder { color: #8a90a2; opacity: 1; }

body.lp .lp-card .form-control:not([type=checkbox]):focus {
    border-color: var(--lp-accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 61, 110, .14);
}

body.lp .lp-card .has-error .form-control:not([type=checkbox]) { border-color: #d52c4c; background: #fff5f7; }

/* Validation messages: under the field instead of a bubble floating outside the card. */
body.lp .lp-card .form-group.validation span.help-block {
    position: static;
    display: block;
    margin: 6px 2px 0;
    padding: 0;
    background: none;
    box-shadow: none;
    color: #d52c4c;
    font-size: 12.5px;
    line-height: 1.35;
    white-space: normal;
}

body.lp .lp-card .form-group.validation span.help-block::after { display: none; }

/* The two consent rows */
body.lp .lp-card .form-group.validation[style] { margin: 0 0 10px 2px !important; }

body.lp .lp-card input[type=checkbox] + label:not(.label-success) {
    color: var(--lp-muted);
    font-size: 13px;
    font-weight: 400;
}

body.lp .lp-card input[type=checkbox]:checked + label:not(.label-success)::before {
    border-color: var(--lp-accent);
    background: var(--lp-accent);
}

body.lp .lp-card .actions { margin-top: 12px; }

body.lp .lp-card .register-btn {
    display: block;
    width: 100%;
    height: 54px;
    padding: 0 16px;
    border: 0 !important;
    border-radius: 14px;
    background: linear-gradient(90deg, var(--lp-accent), var(--lp-accent-2)) !important;
    box-shadow: 0 12px 26px rgba(255, 61, 110, .38);
    color: #fff !important;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 54px;
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

body.lp .lp-card .register-btn:hover,
body.lp .lp-card .register-btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(255, 61, 110, .46);
    filter: brightness(1.05);
}

body.lp .lp-card .register-btn:active { transform: translateY(0); box-shadow: 0 6px 14px rgba(255, 61, 110, .34); }

body.lp .lp-card .btn-social { border-radius: 12px; overflow: hidden; }
body.lp .lp-card .actions + .actions { margin-top: 10px !important; }

body.lp .lp-card form p.agreement {
    margin: 14px 0 0 !important;
    color: #8a90a2;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

body.lp .lp-card form p.agreement a { color: var(--lp-muted); text-decoration: underline !important; }

body.lp .lp-login {
    margin: 16px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
    text-align: center;
}

body.lp .lp-login a { margin-left: 4px; color: #fff; font-weight: 700; text-decoration: underline !important; }

/* ------------------------------------------------------- Lists of members */

body.lp .model-grid .title {
    margin: 6px 0 16px;
    padding: 0;
    border: 0;
    color: var(--lp-ink);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
}

body.lp .model-grid .title::before { display: none; }
body.lp .model-grid .title > div { display: block; padding: 0; background: none; }
body.lp .model-grid .title strong { color: var(--lp-accent); }

/* ------------------------------------------------------------- Sections */

body.lp .lp-section-title {
    margin: 0 0 20px;
    color: var(--lp-ink);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.01em;
    text-align: center;
    text-wrap: balance;
}

body.lp .lp-steps { padding: 36px 16px 8px; }

body.lp .lp-steps__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    max-width: 1080px;
    margin: 0 auto;
}

body.lp .lp-step {
    padding: 22px 20px;
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-radius);
    background: var(--lp-soft);
}

body.lp .lp-step__no {
    width: 38px;
    height: 38px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--lp-accent), var(--lp-accent-2));
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    line-height: 38px;
    text-align: center;
}

body.lp .lp-step h3 { margin: 0 0 6px; color: var(--lp-ink); font-size: 17px; font-weight: 700; }
body.lp .lp-step p { margin: 0; color: var(--lp-muted); font-size: 14.5px; line-height: 1.55; }

body.lp .lp-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    max-width: 1080px;
    margin: 28px 16px 36px;
    padding: 26px 22px;
    border-radius: var(--lp-radius);
    background:
        radial-gradient(420px 260px at 100% 0%, rgba(255, 122, 61, .4), transparent 65%),
        linear-gradient(135deg, var(--lp-hero-2), var(--lp-hero-3));
    color: #fff;
}

body.lp .lp-cta h2 { margin: 0 0 6px; color: #fff; font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
body.lp .lp-cta p { margin: 0; color: rgba(255, 255, 255, .82); font-size: 15px; line-height: 1.5; }

body.lp .lp-cta__button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0 26px;
    border-radius: 14px;
    background: #fff;
    color: var(--lp-ink) !important;
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
    transition: transform .12s ease, box-shadow .12s ease;
}

body.lp .lp-cta__button:hover,
body.lp .lp-cta__button:focus { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(0, 0, 0, .34); }

body.lp .lp-cta__button i { color: var(--lp-accent); }

/* Phones: keep the page clear of the fixed bottom menu. */
@media (max-width: 991px) {
    body.lp .lp-cta { margin-bottom: 96px; }
}

/* --------------------------------------------------------------- Tablet+ */

@media (min-width: 768px) {
    body.lp .lp-hero { padding: 44px 28px 48px; }
    body.lp .lp-title { font-size: 42px; }
    body.lp .lp-subtitle { font-size: 17px; }
    body.lp .lp-card form { padding: 30px 28px 24px; }
    body.lp .lp-hero__form { max-width: 460px; }
    body.lp .lp-live__list { margin: 0; padding-right: 0; padding-left: 0; }
    body.lp .lp-steps { padding: 48px 28px 8px; }
    body.lp .lp-steps__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
    body.lp .lp-cta { flex-direction: row; align-items: center; justify-content: space-between; margin: 32px 28px 44px; padding: 32px 34px; }
}

/* --------------------------------------------------------------- Desktop */

@media (min-width: 992px) {
    body.lp .lp-hero { padding: 60px 40px 64px; }

    body.lp .lp-hero__inner {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
        gap: 56px;
        align-items: center;
    }

    body.lp .lp-hero__form { max-width: none; }
    body.lp .lp-title { font-size: 50px; }

    /* The header already has the sign-in form. */
    body.lp .lp-login { display: none; }

    body.lp .model-grid .title { font-size: 20px; }
    body.lp .lp-section-title { font-size: 28px; }
    body.lp .lp-cta { margin: 36px auto 52px; }
}

@media (min-width: 1160px) {
    body.lp .lp-cta { margin-right: auto; margin-left: auto; }
}
