/* Brings pages using layout.php onto the landing theme. Loaded after style.css, panel.css and landing.css. */
:root {
    --font: 'Plus Jakarta Sans', system-ui, sans-serif;
    --card: var(--lx-bg-2);
    --border: var(--lx-border);
}
body { font-family: var(--font); }
.lx-nav a, .lx-footer a, .lx-fab-wrap a { color: inherit; text-decoration: none; }
.lx-nav .lx-btn { color: #fff; }
.lx-footer h4 { color: #fff; }
.lx-nav__menu span { display: flex; line-height: 0; }

/* The landing script owns .is-open; app.js toggles .active on this drawer. */
@media (max-width: 899px) { .lx-mobile.active { display: flex; } }
.lx-mobile form { margin: 0; }
.lx-mobile form button { width: 100%; color: #fca5a5 !important; }
.lx-mobile .lx-btn { margin-top: .5rem; }
.site-mobile-user { display: grid; gap: .1rem; padding: .35rem .4rem .75rem; margin-bottom: .25rem; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: .8rem; color: var(--lx-muted); }
.site-mobile-user strong { font-size: .9375rem; color: #fff; overflow-wrap: anywhere; }

.btn-primary { background: var(--lx-grad-v); color: #fff; font-weight: 800; }
.btn-accent { background: var(--lx-grad-v); color: #fff; }

/* Auth pages */
.auth-wrap {
    min-height: calc(100vh - 4.2rem);
    padding: clamp(1.75rem, 6vw, 4rem) 1rem;
    background: radial-gradient(60rem 26rem at 50% -8rem, rgba(var(--lx-accent-deep-rgb), .16), transparent 70%);
}
.auth-card {
    width: 100%;
    max-width: 27rem;
    padding: clamp(1.4rem, 5vw, 2.1rem);
    border-radius: 1.15rem;
    border: 1px solid rgba(var(--lx-accent-deep-rgb), .22);
    background: linear-gradient(rgba(var(--lx-accent-deep-rgb), .06) 0%, transparent 28%), var(--lx-bg-2);
    box-shadow: rgba(255, 255, 255, .03) 0 0 0 1px inset, rgba(0, 0, 0, .7) 0 22px 48px -20px;
}
.auth-head { margin-bottom: 1.5rem; }
.auth-card h1 { margin: 0 0 .35rem; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.auth-head p { margin: 0; font-size: .9rem; color: var(--lx-muted); }
.auth-card .field { margin-bottom: 1rem; }
.auth-card .field label { display: block; margin-bottom: .4rem; font-size: .8125rem; font-weight: 600; color: #cbd5e1; }
.auth-card .input {
    width: 100%;
    min-height: 2.9rem;
    padding: .7rem .9rem;
    font-size: .9375rem;
    color: #fff;
    background: var(--lx-bg);
    border: 1px solid var(--lx-border);
    border-radius: .65rem;
    transition: border-color .2s, box-shadow .2s;
}
.auth-card .input::placeholder { color: #64748b; }
.auth-card .input:focus { outline: none; border-color: var(--lx-accent); box-shadow: 0 0 0 3px rgba(var(--lx-accent-rgb), .18); }
.auth-card .input:-webkit-autofill { -webkit-text-fill-color: #fff; box-shadow: 0 0 0 40px var(--lx-bg) inset; caret-color: #fff; }
.auth-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.auth-label-row a, .auth-foot a { color: var(--lx-accent-light); font-weight: 600; }
.auth-label-row a { font-size: .8125rem; }
.auth-optional { font-weight: 400; color: #64748b; }
.auth-control { position: relative; }
.auth-control svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.auth-control > svg { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: #64748b; pointer-events: none; }
.auth-control .input { padding-left: 2.6rem; }
.auth-control:has(.auth-eye) .input { padding-right: 2.9rem; }
.auth-eye { position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; color: #64748b; background: none; border: 0; border-radius: .5rem; cursor: pointer; }
.auth-eye:hover { color: #cbd5e1; }
.auth-eye[aria-pressed="true"] { color: var(--lx-accent-light); }
.auth-eye:focus-visible { outline: 2px solid var(--lx-accent); }
.auth-submit, .auth-card .btn-primary { width: 100%; margin-top: .5rem; min-height: 3rem; font-size: .9375rem; border-radius: .65rem; }
.auth-foot { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--lx-border); text-align: center; font-size: .875rem; color: var(--lx-muted); }

/* Without the landing page's bottom CTA bar the support button can sit lower. */
@media (max-width: 768px) {
    body:not(.has-tabbar) .lx-fab-wrap { bottom: 1rem; }
}
