/* =====================================
   LLC — LOGIN  (cool edition)
   Standalone page: does not need home.css.
   Every class is prefixed "lg-".
===================================== */

@property --lg-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

:root {
    --lg-ink: #1e1a2b;
    --lg-muted: #6f6a7d;
    --lg-border: #e6e2ee;
    --lg-surface: #faf9fc;
    --lg-violet: #7446a8;
    --lg-violet-dark: #5a2f8d;
    --lg-violet-light: #f1e9fa;
    --lg-violet-border: #d9c8ee;
    --lg-glow: #b48be6;
    --lg-gradient: linear-gradient(135deg, #6a3d9f, #8553be);
    --lg-shadow-brand: 0 6px 16px rgba(116, 70, 168, 0.28);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    -webkit-text-size-adjust: 100%;
}

/* =====================================
   BACKGROUND: dot grid + drifting glow orbs
===================================== */

.lg-body {
    display: grid;
    place-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 24px max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background:
        radial-gradient(rgba(116, 70, 168, 0.16) 1px, transparent 1.4px) 0 0 / 26px 26px,
        linear-gradient(160deg, #f8f4fd 0%, #f1ecf8 45%, #ebe4f6 100%);
    color: var(--lg-ink);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.lg-body::before,
.lg-body::after {
    position: fixed;
    z-index: -1;
    border-radius: 50%;
    content: "";
    filter: blur(70px);
    pointer-events: none;
}

.lg-body::before {
    top: -12vmax;
    right: -10vmax;
    width: 46vmax;
    height: 46vmax;
    background: radial-gradient(circle, rgba(148, 104, 204, 0.55), transparent 68%);
    animation: lg-drift-a 18s ease-in-out infinite alternate;
}

.lg-body::after {
    bottom: -14vmax;
    left: -12vmax;
    width: 42vmax;
    height: 42vmax;
    background: radial-gradient(circle, rgba(106, 61, 159, 0.42), transparent 68%);
    animation: lg-drift-b 22s ease-in-out infinite alternate;
}

@keyframes lg-drift-a {
    to {
        transform: translate(-8vmax, 9vmax) scale(1.15);
    }
}

@keyframes lg-drift-b {
    to {
        transform: translate(10vmax, -7vmax) scale(1.2);
    }
}

.lg-body a {
    color: inherit;
    text-decoration: none;
}

/* =====================================
   WRAPPER: glass card, light travelling around the border
===================================== */

.lg-wrap {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    width: 100%;
    max-width: 1000px;
    min-height: 600px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(217, 200, 238, 0.7);
    border-radius: 26px;
    box-shadow:
        0 1px 3px rgba(30, 20, 45, 0.05),
        0 30px 70px rgba(90, 47, 141, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(22px) saturate(1.4);
    backdrop-filter: blur(22px) saturate(1.4);
    animation: lg-wrap-in 600ms cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

@keyframes lg-wrap-in {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.985);
    }
}

.lg-wrap::before {
    position: absolute;
    inset: -1px;
    z-index: -1;
    padding: 1px;
    background: conic-gradient(from var(--lg-angle),
            transparent 0 52%,
            rgba(180, 139, 230, 0.2) 62%,
            #b48be6 78%,
            #7446a8 88%,
            transparent 100%);
    border-radius: 26px;
    content: "";
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: lg-spin 7s linear infinite;
    pointer-events: none;
}

@keyframes lg-spin {
    to {
        --lg-angle: 360deg;
    }
}

/* =====================================
   BRAND PANEL
===================================== */

.lg-brand-panel {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    padding: 44px 44px 30px;
    overflow: hidden;
    background: linear-gradient(150deg, #4d2680 0%, #6b3fa0 50%, #9468cc 100%);
    border-radius: 25px 0 0 25px;
    color: #fff;
}

/* Concentric rings, top right */
.lg-brand-panel::before {
    position: absolute;
    top: -110px;
    right: -110px;
    z-index: -1;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    box-shadow:
        0 0 0 46px rgba(255, 255, 255, 0.03),
        0 0 0 47px rgba(255, 255, 255, 0.16),
        0 0 0 98px rgba(255, 255, 255, 0.02),
        0 0 0 99px rgba(255, 255, 255, 0.1);
    content: "";
    pointer-events: none;
}

/* Giant watermark */
.lg-brand-panel::after {
    position: absolute;
    bottom: 80px;
    left: 14px;
    z-index: -1;
    color: rgba(255, 255, 255, 0.07);
    font-size: clamp(150px, 19vw, 240px);
    font-style: italic;
    font-weight: 900;
    letter-spacing: -12px;
    line-height: 1;
    content: "LLC";
    pointer-events: none;
}

.lg-brand-top {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lg-mark {
    font-size: 46px;
    font-style: italic;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1;
}

.lg-mark-dot {
    color: #e6d3ff;
}

.lg-tag {
    color: rgba(255, 255, 255, 0.72);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 4px;
}

.lg-pitch {
    margin: 44px 0;
}

.lg-eyebrow {
    margin: 0;
    color: var(--lg-violet);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.lg-brand-panel .lg-eyebrow {
    color: rgba(255, 255, 255, 0.78);
}

.lg-title {
    margin: 16px 0 18px;
    font-size: clamp(38px, 4.8vw, 58px);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 0.98;
}

/* Second line shimmers */
.lg-title span {
    background: linear-gradient(100deg, #fff 0%, #e6d3ff 35%, #b48be6 55%, #e6d3ff 75%, #fff 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: lg-shimmer 6s ease-in-out infinite;
}

@keyframes lg-shimmer {

    0%,
    100% {
        background-position: 100% 0;
    }

    50% {
        background-position: 0 0;
    }
}

.lg-desc {
    max-width: 330px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    line-height: 1.8;
}

.lg-bottom {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lg-line {
    display: block;
    width: 46px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
}

.lg-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 2px;
}

/* Scrolling ticker */
.lg-ticker {
    margin: 8px -44px 0;
    padding: 13px 0;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.lg-ticker-track {
    display: flex;
    width: max-content;
    animation: lg-ticker 26s linear infinite;
}

.lg-ticker-group {
    display: flex;
    flex-shrink: 0;
}

.lg-ticker-group span {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.4px;
    white-space: nowrap;
}

.lg-ticker-group span::after {
    width: 6px;
    height: 6px;
    margin: 0 26px;
    background: #e6d3ff;
    border-radius: 1px;
    content: "";
    transform: rotate(45deg);
}

@keyframes lg-ticker {
    to {
        transform: translateX(-50%);
    }
}

/* =====================================
   FORM PANEL
===================================== */

.lg-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(28px, 4vw, 44px);
}

.lg-back {
    align-self: flex-start;
    margin-bottom: 36px;
    color: var(--lg-muted);
    font-size: 13px;
    font-weight: 650;
    transition: color 160ms ease, transform 200ms ease;
}

.lg-back:hover {
    color: var(--lg-violet);
    transform: translateX(-3px);
}

.lg-mobile-logo {
    display: none;
    align-items: center;
    align-self: flex-start;
    gap: 12px;
    margin-bottom: 26px;
}

.lg-mobile-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: var(--lg-gradient);
    color: #fff;
    border-radius: 13px;
    box-shadow: var(--lg-shadow-brand);
    font-size: 15px;
    font-weight: 900;
}

.lg-mobile-name {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2.4px;
}

.lg-heading {
    margin-bottom: 26px;
}

.lg-heading h2 {
    margin: 10px 0 8px;
    background: linear-gradient(100deg, #1e1a2b 20%, #5a2f8d 60%, #9468cc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--lg-ink);
    font-size: clamp(28px, 5vw, 36px);
    font-weight: 900;
    letter-spacing: -1.2px;
    line-height: 1.05;
}

.lg-subtitle {
    margin: 0;
    color: var(--lg-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* Staggered entrance */
.lg-brand-panel>*,
.lg-panel>* {
    animation: lg-rise 650ms cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.lg-brand-panel>*:nth-child(1),
.lg-panel>*:nth-child(1) {
    animation-delay: 120ms;
}

.lg-brand-panel>*:nth-child(2),
.lg-panel>*:nth-child(2) {
    animation-delay: 200ms;
}

.lg-brand-panel>*:nth-child(3),
.lg-panel>*:nth-child(3) {
    animation-delay: 280ms;
}

.lg-panel>*:nth-child(4) {
    animation-delay: 340ms;
}

.lg-panel>*:nth-child(5) {
    animation-delay: 400ms;
}

.lg-panel>*:nth-child(6) {
    animation-delay: 460ms;
}

.lg-panel>*:nth-child(7) {
    animation-delay: 520ms;
}

@keyframes lg-rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
}

/* =====================================
   FLASH MESSAGES
===================================== */

.lg-flash {
    margin: 0 0 18px;
    padding: 12px 14px;
    background: var(--lg-violet-light);
    border: 1px solid var(--lg-violet-border);
    border-radius: 12px;
    color: var(--lg-violet-dark);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.lg-flash.error {
    background: #fdeeeb;
    border-color: #f6cfc7;
    color: #b23a24;
    animation: lg-shake 420ms 200ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.lg-flash.success {
    background: #eaf6f0;
    border-color: #cfe9dc;
    color: #2c7a52;
}

@keyframes lg-shake {

    20%,
    60% {
        transform: translateX(-5px);
    }

    40%,
    80% {
        transform: translateX(5px);
    }
}

/* =====================================
   FORM
===================================== */

.lg-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 0;
}

.lg-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.lg-label {
    color: var(--lg-ink);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.2px;
    transition: color 160ms ease;
}

.lg-field:focus-within .lg-label {
    color: var(--lg-violet);
}

.lg-input {
    display: block;
    width: 100%;
    height: 50px;
    padding: 0 16px;
    background: rgba(250, 249, 252, 0.85);
    color: var(--lg-ink);
    border: 1px solid var(--lg-border);
    border-radius: 14px;
    font: inherit;
    font-size: 16px;
    /* 16px stops iOS from zooming in on focus */
    transition: border-color 160ms ease, box-shadow 220ms ease, background 160ms ease, transform 160ms ease;
}

.lg-input::placeholder {
    color: #9a95a8;
}

.lg-input:hover {
    border-color: var(--lg-violet-border);
}

.lg-input:focus {
    outline: none;
    background: #fff;
    border-color: var(--lg-violet);
    box-shadow: 0 0 0 4px var(--lg-violet-light), 0 8px 22px rgba(116, 70, 168, 0.16);
    transform: translateY(-1px);
}

.lg-pass {
    position: relative;
}

.lg-pass .lg-input {
    padding-right: 52px;
}

.lg-toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    background: transparent;
    color: var(--lg-muted);
    border: 0;
    border-radius: 11px;
    cursor: pointer;
    transform: translateY(-50%);
    transition: color 160ms ease, background 160ms ease;
}

.lg-toggle:hover {
    background: var(--lg-violet-light);
    color: var(--lg-violet);
}

.lg-toggle:focus-visible {
    outline: 2px solid var(--lg-violet);
    outline-offset: 1px;
}

.lg-toggle svg {
    width: 19px;
    height: 19px;
}

/* =====================================
   BUTTONS
===================================== */

.lg-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 52px;
    margin-top: 4px;
    padding: 12px 22px;
    overflow: hidden;
    background: var(--lg-gradient);
    color: #fff;
    border: 0;
    border-radius: 15px;
    box-shadow: var(--lg-shadow-brand), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.6px;
    cursor: pointer;
    transition: transform 160ms ease, filter 160ms ease, box-shadow 200ms ease;
}

.lg-submit::after {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.38), transparent);
    content: "";
    transform: skewX(-20deg);
    pointer-events: none;
}

.lg-submit:hover::after {
    left: 130%;
    transition: left 700ms ease;
}

.lg-submit svg {
    width: 20px;
    height: 20px;
    transition: transform 200ms ease;
}

.lg-submit:hover {
    filter: brightness(1.07);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(116, 70, 168, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.lg-submit:hover svg {
    transform: translateX(4px);
}

.lg-submit:active {
    transform: scale(0.98);
}

.lg-submit:focus-visible {
    outline: 3px solid var(--lg-violet-border);
    outline-offset: 3px;
}

.lg-submit:disabled {
    filter: grayscale(0.3) brightness(1.1);
    box-shadow: none;
    cursor: progress;
    transform: none;
}

.lg-sep {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 26px 0 16px;
    color: var(--lg-muted);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.lg-sep::before,
.lg-sep::after {
    flex: 1;
    height: 1px;
    background: rgba(217, 200, 238, 0.8);
    content: "";
}

.lg-register {
    display: block;
    padding: 14px;
    background: rgba(255, 255, 255, 0.6);
    color: var(--lg-violet);
    border: 1.5px solid var(--lg-violet-border);
    border-radius: 15px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-align: center;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 160ms ease;
}

.lg-register:hover {
    background: var(--lg-violet-light);
    border-color: var(--lg-violet);
    transform: translateY(-1px);
}

.lg-terms {
    margin: 22px 0 0;
    color: var(--lg-muted);
    font-size: 12px;
    line-height: 1.7;
    text-align: center;
}

/* =====================================
   RESPONSIVE
===================================== */

@media (max-width: 900px) {
    .lg-wrap {
        grid-template-columns: 0.9fr 1fr;
    }

    .lg-brand-panel {
        padding: 36px 30px 26px;
    }

    .lg-ticker {
        margin-right: -30px;
        margin-left: -30px;
    }
}

@media (max-width: 760px) {
    .lg-wrap {
        display: block;
        max-width: 440px;
        min-height: 0;
        border-radius: 22px;
    }

    .lg-wrap::before {
        border-radius: 22px;
    }

    .lg-brand-panel {
        display: none;
    }

    .lg-panel {
        padding: 28px 24px 30px;
    }

    .lg-back {
        margin-bottom: 24px;
    }

    .lg-mobile-logo {
        display: inline-flex;
    }
}

@media (max-width: 360px) {
    .lg-panel {
        padding: 24px 18px 26px;
    }
}

/* Browsers without backdrop blur get a solid card */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .lg-wrap {
        background: #fff;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
}


/* Forgot password link */
.lg-forgot {
    display: block;
    margin-top: -4px;
    text-align: right;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--lg-violet);
    text-decoration: none;
}

.lg-forgot:hover {
    color: var(--lg-violet-dark);
    text-decoration: underline;
}

.lg-forgot:focus-visible {
    outline: 2px solid var(--lg-violet);
    outline-offset: 3px;
    border-radius: 4px;
}