/* =====================================================================
   Fellas - sign-in page ("moonlit cradle")
   Deep navy night sky with slow plum and orange aurora, a glowing logo
   medallion, and a frosted-glass sign-in card. Colours follow the logo.
   ===================================================================== */
.lx-body {
    --lx-navy: #0b1238;
    --lx-navy-2: #14215a;
    --lx-plum: #7b3fa0;
    --lx-violet: #9b6bd6;
    --lx-orange: #f7941d;
    --lx-orange-2: #ffb44d;
    --lx-pink: #e86aa6;
    --lx-ink: #1b2340;
    --lx-muted: #5f6787;
    margin: 0;
    min-height: 100vh;
    background: var(--lx-navy);
    color: #fff;
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
    overflow-x: hidden;
}

/* ---------- background scene ---------- */
.lx-scene { position: fixed; inset: 0; overflow: hidden; z-index: 0;
    background:
        radial-gradient(120% 80% at 15% 110%, #2a1450 0%, transparent 60%),
        radial-gradient(90% 70% at 100% 0%, #1d2b74 0%, transparent 55%),
        linear-gradient(160deg, #0d1640 0%, #0b1238 45%, #120f35 100%); }
.lx-aurora { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; mix-blend-mode: screen; will-change: transform; }
.lx-aurora.a1 { width: 46vw; height: 46vw; left: -10vw; top: -12vw; background: radial-gradient(circle, var(--lx-plum), transparent 65%); animation: lx-drift1 26s ease-in-out infinite alternate; }
.lx-aurora.a2 { width: 38vw; height: 38vw; left: 22vw; bottom: -16vw; background: radial-gradient(circle, rgba(247,148,29,.85), transparent 62%); opacity: .38; animation: lx-drift2 32s ease-in-out infinite alternate; }
.lx-aurora.a3 { width: 34vw; height: 34vw; right: -8vw; top: 18vh; background: radial-gradient(circle, #3550c8, transparent 65%); animation: lx-drift3 28s ease-in-out infinite alternate; }
@keyframes lx-drift1 { to { transform: translate(14vw, 10vh) scale(1.15); } }
@keyframes lx-drift2 { to { transform: translate(-10vw, -14vh) scale(1.2); } }
@keyframes lx-drift3 { to { transform: translate(-12vw, 12vh) scale(.9); } }

/* stars: three layers of tiny dots that twinkle out of step */
.lx-stars, .lx-stars::before, .lx-stars::after { position: absolute; inset: 0; content: ""; background-repeat: repeat; }
.lx-stars { background-image:
        radial-gradient(1px 1px at 20px 30px, rgba(255,255,255,.75), transparent 60%),
        radial-gradient(1px 1px at 140px 90px, rgba(255,255,255,.55), transparent 60%),
        radial-gradient(1.5px 1.5px at 260px 170px, rgba(255,230,200,.8), transparent 60%);
    background-size: 320px 240px; animation: lx-twinkle 6s ease-in-out infinite; }
.lx-stars::before { background-image:
        radial-gradient(1px 1px at 70px 200px, rgba(255,255,255,.6), transparent 60%),
        radial-gradient(1.2px 1.2px at 210px 40px, rgba(220,210,255,.8), transparent 60%);
    background-size: 280px 260px; animation: lx-twinkle 8s ease-in-out 2s infinite; }
.lx-stars::after { background-image: radial-gradient(1px 1px at 120px 140px, rgba(255,255,255,.5), transparent 60%);
    background-size: 200px 180px; animation: lx-twinkle 5s ease-in-out 1s infinite; }
@keyframes lx-twinkle { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.lx-grain { position: absolute; inset: 0; opacity: .06; pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* ---------- layout ---------- */
.lx-page { position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 2rem; padding: 3rem clamp(1.5rem, 5vw, 5rem); max-width: 1320px; margin: 0 auto; }

/* ---------- brand story (left) ---------- */
.lx-story { display: flex; flex-direction: column; align-items: flex-start; }
.lx-medallion { position: relative; width: 168px; height: 168px; margin-bottom: 2rem; transition: transform .6s cubic-bezier(.2,.7,.2,1); animation: lx-rise .9s cubic-bezier(.2,.7,.2,1) both; }
.lx-medallion img { position: relative; z-index: 2; width: 100%; height: 100%; border-radius: 50%; background: #fff; padding: 6px; object-fit: contain;
    box-shadow: 0 0 0 6px rgba(255,255,255,.06), 0 18px 50px rgba(0,0,0,.45); animation: lx-float 7s ease-in-out infinite; }
.lx-halo { position: absolute; inset: -34px; border-radius: 50%; z-index: 0;
    background: radial-gradient(circle, rgba(155,107,214,.55) 0%, rgba(247,148,29,.18) 45%, transparent 70%); animation: lx-breathe 5s ease-in-out infinite; }
.lx-orbit { position: absolute; inset: -16px; border-radius: 50%; z-index: 1; border: 1px dashed rgba(255,255,255,.22); animation: lx-spin 40s linear infinite; }
.lx-orbit i { position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
    background: var(--lx-orange-2); box-shadow: 0 0 14px 4px rgba(255,180,77,.7); }
@keyframes lx-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes lx-breathe { 0%, 100% { transform: scale(.92); opacity: .75; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes lx-spin { to { transform: rotate(360deg); } }

.lx-name { font-family: "Poppins", "Segoe UI", sans-serif; font-weight: 700; font-size: clamp(2.1rem, 3.6vw, 3.2rem); line-height: 1.08; letter-spacing: -.02em; margin: 0;
    background: linear-gradient(100deg, #ffffff 10%, #f3e6ff 45%, #ffd9a8 90%); -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: lx-rise .9s .1s cubic-bezier(.2,.7,.2,1) both; }
.lx-tag { margin-top: .6rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; font-size: .8rem; color: var(--lx-orange-2); animation: lx-rise .9s .2s cubic-bezier(.2,.7,.2,1) both; }
.lx-tag:empty { display: none; }
.lx-lead { margin: 1.4rem 0 2rem; max-width: 30rem; font-size: 1.08rem; line-height: 1.7; color: #c8cdea; animation: lx-rise .9s .3s cubic-bezier(.2,.7,.2,1) both; }
.lx-features { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .65rem; }
.lx-features li { display: inline-flex; align-items: center; gap: .55rem; padding: .5rem 1rem .5rem .5rem; border-radius: 999px; font-size: .9rem; color: #e6e8f7;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    animation: lx-rise .8s var(--d, .5s) cubic-bezier(.2,.7,.2,1) both; }
.lx-features li span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--lx-plum), var(--lx-orange)); color: #fff; font-size: .9rem; }

/* ---------- sign-in card (right) ---------- */
.lx-panel { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.lx-card { position: relative; width: 100%; max-width: 430px; padding: 2.6rem 2.4rem 2rem; border-radius: 28px; color: var(--lx-ink);
    background: rgba(255,255,255,.97); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
    box-shadow: 0 30px 80px rgba(4,6,30,.55), 0 0 0 1px rgba(255,255,255,.5) inset;
    animation: lx-card-in 1s .15s cubic-bezier(.2,.7,.2,1) both; }
/* glowing gradient edge */
.lx-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
    background: conic-gradient(from var(--lx-angle, 0deg), rgba(247,148,29,.95), rgba(155,107,214,.95), rgba(53,80,200,.75), rgba(232,106,166,.9), rgba(247,148,29,.95));
    -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: lx-edge 8s linear infinite; }
@property --lx-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes lx-edge { to { --lx-angle: 360deg; } }
@keyframes lx-card-in { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes lx-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.lx-mobile-logo { display: none; }
.lx-greet { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 600;
    color: #8a4a00; background: linear-gradient(135deg, #fff4e6, #fde8f3); border: 1px solid #f8d3a6; }
.lx-greet .bi { color: var(--lx-orange); }
.lx-title { font-family: "Poppins", "Segoe UI", sans-serif; font-weight: 700; font-size: 1.85rem; letter-spacing: -.02em; margin: .9rem 0 .35rem; color: var(--lx-ink); }
.lx-title em { font-style: normal; background: linear-gradient(100deg, var(--lx-plum), var(--lx-orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lx-sub { color: var(--lx-muted); margin: 0 0 1.6rem; font-size: .95rem; }

/* floating-label fields with an icon */
.lx-field { position: relative; margin-bottom: 1rem; }
.lx-input { display: block; width: 100%; height: 60px; padding: 1.35rem 1rem .45rem 3rem; border-radius: 16px; font-size: 1rem; color: var(--lx-ink);
    background: #f6f6fb; border: 1.5px solid #e4e4ef; outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.lx-input.has-eye { padding-right: 3.2rem; }
.lx-input:hover { border-color: #d3d3e4; }
.lx-input:focus { background: #fff; border-color: var(--lx-violet); box-shadow: 0 0 0 4px rgba(155,107,214,.18); }
.lx-field label { position: absolute; left: 3rem; top: 50%; transform: translateY(-50%); color: #8b90aa; pointer-events: none; font-size: 1rem;
    transition: top .18s ease, font-size .18s ease, color .18s ease; }
.lx-input:focus + label, .lx-input:not(:placeholder-shown) + label { top: 16px; font-size: .72rem; font-weight: 600; letter-spacing: .04em; color: var(--lx-plum); }
.lx-input:-webkit-autofill + label { top: 16px; font-size: .72rem; font-weight: 600; color: var(--lx-plum); }
.lx-input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #fff inset; -webkit-text-fill-color: var(--lx-ink); }
.lx-ic { position: absolute; left: 1.05rem; top: 50%; transform: translateY(-50%); font-size: 1.15rem; color: #9da2bb; transition: color .2s; z-index: 1; }
.lx-field:focus-within .lx-ic { color: var(--lx-plum); }
.lx-eye { position: absolute; right: .55rem; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 0; border-radius: 12px; background: transparent; color: #8b90aa; font-size: 1.15rem; }
.lx-eye:hover, .lx-eye:focus-visible { color: var(--lx-plum); background: rgba(155,107,214,.1); outline: none; }
.lx-caps { display: flex; align-items: center; gap: .4rem; margin: -.35rem 0 .9rem .25rem; font-size: .82rem; font-weight: 600; color: #b45309; }
.lx-caps[hidden] { display: none; }

/* the button: warm gradient, light sweep on hover, spinner while signing in */
.lx-btn { position: relative; overflow: hidden; width: 100%; height: 58px; margin-top: .6rem; border: 0; border-radius: 16px;
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem; font-family: "Poppins", "Segoe UI", sans-serif; font-weight: 600; font-size: 1.05rem; letter-spacing: .01em;
    color: #fff; background: linear-gradient(110deg, #f7941d 0%, #ef6f3c 45%, #b8479f 100%); background-size: 160% 100%; background-position: 0% 50%;
    box-shadow: 0 12px 28px rgba(239,111,60,.38); transition: background-position .5s ease, transform .15s ease, box-shadow .2s ease; }
.lx-btn:hover, .lx-btn:focus-visible { color: #fff; background-position: 100% 50%; box-shadow: 0 16px 34px rgba(184,71,159,.38); transform: translateY(-1px); }
.lx-btn:active { transform: translateY(1px); }
.lx-btn:focus-visible { outline: 3px solid rgba(155,107,214,.45); outline-offset: 3px; }
.lx-btn::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; transform: skewX(-20deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); transition: left .7s ease; }
.lx-btn:hover::after { left: 120%; }
.lx-btn .bi { font-size: 1.2rem; }
.lx-btn.is-busy { pointer-events: none; opacity: .92; }
.lx-btn.is-busy .bi { display: none; }
.lx-btn.is-busy::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: lx-spin .7s linear infinite; }

.lx-alert { display: flex; align-items: flex-start; gap: .6rem; padding: .8rem 1rem; margin-bottom: 1.1rem; border-radius: 14px; font-size: .9rem;
    color: #8a2c0d; background: #fff1ea; border: 1px solid #ffd0bb; animation: lx-shake .45s ease both; }
.lx-alert .bi { font-size: 1.1rem; color: #e0531f; margin-top: -1px; }
@keyframes lx-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }

.lx-help { display: flex; flex-direction: column; gap: .3rem; margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px dashed #e2e2ee; font-size: .82rem; color: var(--lx-muted); }
.lx-help .bi { color: #18794e; }
.lx-foot { font-size: .8rem; color: rgba(214,220,242,.6); }

/* ---------- smaller screens ---------- */
@media (max-width: 991.98px) {
    .lx-page { grid-template-columns: 1fr; padding: 2rem 1rem; gap: 0; align-content: center; }
    .lx-story { display: none; }
    .lx-card { padding: 2rem 1.4rem 1.6rem; border-radius: 24px; text-align: left; }
    .lx-mobile-logo { position: relative; z-index: 2; display: block; width: 84px; height: 84px; border-radius: 50%; background: #fff; padding: 4px; object-fit: contain; margin: -4.2rem auto 1rem;
        box-shadow: 0 10px 30px rgba(4,6,30,.4), 0 0 0 5px rgba(255,255,255,.9); }
    .lx-panel { padding-top: 2.5rem; }
    .lx-title { font-size: 1.55rem; }
}

/* calm version for people who prefer less motion */
@media (prefers-reduced-motion: reduce) {
    .lx-body *, .lx-body *::before, .lx-body *::after { animation: none !important; transition: none !important; }
}

/* forgot-password page: just the card, centred */
.lx-page.lx-single { grid-template-columns: 1fr; justify-items: center; }
.lx-page.lx-single .lx-panel { width: 100%; max-width: 460px; }
.lx-mobile-logo.lx-show { display: block; width: 84px; height: 84px; border-radius: 50%; background: #fff; padding: 4px; object-fit: contain; margin: -4.4rem auto 1rem;
    box-shadow: 0 10px 30px rgba(4,6,30,.4), 0 0 0 5px rgba(255,255,255,.9); position: relative; z-index: 2; }
.lx-page.lx-single .lx-card { margin-top: 2.5rem; }
.lx-help a { color: var(--lx-plum); font-weight: 600; text-decoration: none; }
.lx-help a:hover { text-decoration: underline; }
.lx-done { text-align: center; padding: .5rem 0 .25rem; }
.lx-done-ic { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; font-size: 2rem; color: #fff;
    background: linear-gradient(135deg, #18794e, #2fb37a); box-shadow: 0 10px 24px rgba(24,121,78,.35); animation: lx-card-in .6s cubic-bezier(.2,.7,.2,1) both; }
