.lg-body {
    --lg-bg: var(--bg-primary);
    --lg-fg: var(--text-primary);
    --lg-fg-2: var(--text-secondary);
    --lg-accent: var(--text-primary);
    --lg-display: var(--default-font);
    --lg-mono: var(--default-font);
    --lg-drift-opacity: .22;
    --lg-scene-bg: var(--bg-secondary);
    background: var(--lg-bg) !important;
}

[data-theme="dark"] .lg-body {
    --lg-drift-opacity: .1;
}

.lg-page {
    min-height: calc(100vh - 110px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding-top: 78px;
}

.lg-form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px clamp(20px, 5vw, 72px);
}

.lg-card {
    width: min(440px, 100%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 36px 34px 30px;
    border: 2px solid var(--text-primary);
    border-bottom-width: 6px;
    border-radius: 16px;
    background: var(--bg-primary);
    text-align: left;
}

.lg-kicker {
    position: relative;
    align-self: flex-start;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-colour);
}

.lg-title {
    margin: 0;
    font-family: var(--lg-display);
    font-weight: 700;
    font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem);
    line-height: 1.06;
    letter-spacing: -.02em;
    color: var(--lg-fg);
    text-wrap: balance;
}

.lg-accent {
    color: var(--lg-accent);
}

.lg-lead {
    margin: 0 0 6px;
    color: var(--lg-fg-2);
}

.lg-card .signup-form {
    margin: 0;
    padding: 6px 0 0;
}

.lg-card .form-fields-wrapper {
    gap: 1.1rem;
}

.lg-card .input-wrapper {
    position: relative;
}

.lg-peek {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px;
    border: 0;
    background: none;
    color: var(--lg-fg-2);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.lg-peek:hover {
    color: var(--lg-fg);
}

.lg-card .form-input:focus,
[data-theme="dark"] .lg-card .form-input:focus {
    border-color: var(--text-primary) !important;
    box-shadow: none !important;
}

.lg-card .input-wrapper:focus-within .input-icon,
[data-theme="dark"] .lg-card .input-wrapper:focus-within .input-icon {
    color: var(--text-primary) !important;
}

.lg-card .forgot-password-link {
    display: block;
    text-align: right;
    font-size: 14px;
    font-weight: 500;
    color: var(--lg-accent);
}

.lg-submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 10px;
    background: var(--primary-colour);
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background-color .15s ease;
}

.lg-submit:hover {
    background: var(--dark-green);
}

.lg-submit:focus-visible {
    outline: 3px solid #f4d35e;
    outline-offset: 3px;
}

.lg-new {
    margin: 6px 0 0;
    text-align: center;
    font-size: 15px;
    color: var(--lg-fg-2);
}

.lg-new a {
    color: var(--lg-fg);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: currentColor;
    text-underline-offset: 4px;
}

.lg-scene {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 8%;
    background: var(--lg-scene-bg);
}

.lg-scene::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -1px;
    z-index: 1;
    width: 48px;
    background: var(--lg-bg);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 160' preserveAspectRatio='none'%3E%3Cpath d='M0 0H24C44 26 44 54 24 80C4 106 4 134 24 160H0Z'/%3E%3C/svg%3E") left top / 48px 160px repeat-y;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 160' preserveAspectRatio='none'%3E%3Cpath d='M0 0H24C44 26 44 54 24 80C4 106 4 134 24 160H0Z'/%3E%3C/svg%3E") left top / 48px 160px repeat-y;
    pointer-events: none;
}

.lg-drift {
    position: absolute;
    inset: -10% 0;
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding-inline: 8%;
    font-family: var(--lg-mono);
    font-size: 14px;
    color: var(--lg-fg);
    opacity: var(--lg-drift-opacity);
    white-space: nowrap;
    pointer-events: none;
    animation: lg-rise 60s linear infinite;
}

.lg-drift span:nth-child(odd) {
    padding-left: 14%;
}

.lg-drift span:nth-child(3n) {
    padding-left: 30%;
}

@keyframes lg-rise {
    to {
        transform: translateY(-50%);
    }
}

.lg-quote {
    position: relative;
    margin: 0;
    max-width: 560px;
    text-align: left;
}

.lg-q1 {
    display: block;
    font-family: var(--lg-display);
    font-size: clamp(1.3rem, .9rem + 1.4vw, 1.9rem);
    line-height: 1.2;
    color: var(--lg-fg-2);
}

.lg-change {
    display: inline-flex;
    color: var(--lg-fg);
}

.lg-change i {
    display: inline-block;
    font-style: normal;
    transition: transform 1.1s cubic-bezier(.3, 1.3, .5, 1);
}

.lg-q2 {
    display: block;
    margin-top: 10px;
    font-family: var(--lg-display);
    font-weight: 700;
    font-size: clamp(2.1rem, 1.2rem + 3vw, 3.6rem);
    line-height: 1.02;
    letter-spacing: -.02em;
    color: var(--lg-fg);
}

.lg-stay {
    position: relative;
    display: inline-block;
    color: var(--lg-accent);
}

@media (max-width: 900px) {
    .lg-page {
        grid-template-columns: minmax(0, 1fr);
        justify-content: stretch;
    }

    .lg-scene {
        order: -1;
        justify-content: flex-start;
        padding: 28px 20px 26px;
        border-bottom: 1px solid var(--border-color);
    }

    .lg-scene::before {
        display: none;
    }

    .lg-drift {
        display: none;
    }

    .lg-q1 {
        font-size: 1.15rem;
    }

    .lg-q2 {
        font-size: 2rem;
    }

    .lg-form {
        padding: 24px 16px 40px;
    }

    .lg-card {
        padding: 26px 20px 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lg-drift {
        animation: none;
    }

    .lg-change i,
    .lg-submit {
        transition: none;
    }

}
