/* Login & Register, matches landing-short / index.php */

:root {
    --auth-cyan: #22d3ee;
    --auth-input-h: 48px;
}

.ls-auth-page {
    padding-top: calc(var(--lp-nav-h, 64px) + 0.5rem);
    padding-bottom: 1rem;
}

.ls-auth-hero {
    position: relative;
    padding: 1.75rem 0 1.25rem;
    overflow: hidden;
    isolation: isolate;
}

.ls-auth-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.ls-auth-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 1.25rem;
    text-align: center;
}

.ls-auth-hero__title {
    font-size: clamp(1.85rem, 4.5vw, 2.65rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin: 0 0 0.75rem;
}

.ls-auth-hero__sub {
    font-size: 0.95rem;
    color: var(--lp-muted);
    line-height: 1.6;
    margin: 0 auto 1.15rem;
    max-width: 30rem;
}

.ls-auth-wrap {
    max-width: 440px;
    margin: 0 auto;
    padding: 0 1.25rem 1rem;
}

.ls-auth-wrap--wide {
    max-width: 520px;
}

.ls-auth-card {
    padding: 1.35rem 1.25rem 1.25rem;
    border-radius: var(--lp-radius);
    background: linear-gradient(165deg, rgba(34, 197, 94, 0.06) 0%, rgba(12, 12, 20, 0.96) 38%, rgba(3, 3, 9, 0.98) 100%);
    border: 1px solid var(--lp-border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.ls-auth-card__logo {
    text-align: center;
    margin-bottom: 1rem;
}

.ls-auth-card__logo img {
    height: 40px;
    width: auto;
}

.ls-auth-card__title {
    margin: 0 0 0.3rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--lp-text);
    text-align: center;
}

.ls-auth-card__sub {
    margin: 0 0 1.1rem;
    font-size: 0.875rem;
    color: var(--lp-muted);
    text-align: center;
    line-height: 1.55;
}

.ls-auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
}

.ls-auth-alert--error {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.28);
}

.ls-auth-alert--success {
    color: #86efac;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.28);
}

.ls-auth-reset-box {
    margin-bottom: 1rem;
    padding: 0.85rem 0.9rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    word-break: break-all;
}

.ls-auth-reset-box__label {
    margin-bottom: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--lp-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ls-auth-reset-box a {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--lp-green);
    text-decoration: none;
    line-height: 1.5;
}

.ls-auth-reset-box a:hover {
    text-decoration: underline;
}

.ls-auth-card__footer--split a + a::before {
    content: "·";
    margin: 0 0.35rem;
    color: var(--lp-muted);
    font-weight: 400;
    text-decoration: none;
    pointer-events: none;
}

/* ─── Form (inputs, labels, submit, hints) ─── */
.ls-auth-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ls-auth-form input[type="email"],
.ls-auth-form input[type="password"],
.ls-auth-form input[type="text"] {
    box-sizing: border-box;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
}

.ls-auth-field {
    margin-bottom: 1rem;
}

.ls-auth-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ls-auth-row .ls-auth-field {
    margin-bottom: 0;
}

@media (max-width: 575.98px) {
    .ls-auth-row {
        grid-template-columns: 1fr;
    }

    .ls-auth-row .ls-auth-field:last-child {
        margin-bottom: 0;
    }
}

.ls-auth-field label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--lp-text);
    letter-spacing: 0.01em;
}

.ls-auth-field label small {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--lp-muted);
}

.ls-auth-input-wrap {
    position: relative;
    display: block;
    height: var(--auth-input-h);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ls-auth-input-wrap:focus-within {
    border-color: rgba(34, 211, 238, 0.55);
    background: rgba(0, 0, 0, 0.45);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.ls-auth-input-wrap .icon {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--auth-cyan);
    font-size: 1.05rem;
    line-height: 1;
    background: rgba(34, 211, 238, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    pointer-events: none;
}

.ls-auth-input-wrap input {
    position: relative;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0 0.9rem 0 52px;
    font-size: 0.9375rem;
    font-family: inherit;
    font-weight: 500;
    line-height: normal;
    color: var(--lp-text);
    background: transparent;
    border: none;
    border-radius: 0;
    outline: none;
    box-shadow: none;
}

.ls-auth-input-wrap input::placeholder {
    color: rgba(136, 150, 168, 0.6);
    font-weight: 400;
}

.ls-auth-input-wrap input:focus {
    outline: none;
    box-shadow: none;
}

.ls-auth-input-wrap input:-webkit-autofill,
.ls-auth-input-wrap input:-webkit-autofill:hover,
.ls-auth-input-wrap input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--lp-text);
    -webkit-box-shadow: 0 0 0 1000px rgba(10, 10, 18, 0.95) inset;
    transition: background-color 9999s ease-out 0s;
}

.ls-auth-input-wrap input:read-only {
    opacity: 0.72;
    cursor: default;
}

.ls-auth-input-wrap--pw input {
    padding-right: 44px;
}

.ls-auth-pw-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--lp-muted);
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.ls-auth-pw-toggle:hover {
    color: var(--lp-text);
    background: rgba(255, 255, 255, 0.08);
}

.ls-auth-link-row {
    display: flex;
    justify-content: flex-end;
    margin: -0.35rem 0 1rem;
}

.ls-auth-link-row a {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--auth-cyan);
    text-decoration: none;
}

.ls-auth-link-row a:hover {
    color: var(--lp-green);
    text-decoration: underline;
}

.ls-auth-submit.ls-btn {
    display: flex;
    width: 100%;
    min-height: 50px;
    margin-top: 0.15rem;
    border-radius: 10px !important;
    justify-content: center;
    align-items: center;
}

.ls-auth-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin-top: 0.5rem;
    padding: 0.6rem 0.7rem;
    font-size: 0.78rem;
    color: var(--lp-muted);
    line-height: 1.45;
    border-radius: 8px;
    background: rgba(34, 211, 238, 0.06);
    border: 1px solid rgba(34, 211, 238, 0.12);
}

.ls-auth-hint i {
    color: var(--auth-cyan);
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.ls-auth-alert {
    border-radius: 10px;
}

.ls-auth-reset-box {
    border-radius: 10px;
    border: 1px dashed rgba(34, 211, 238, 0.28);
    background: rgba(0, 0, 0, 0.35);
}

.ls-auth-reset-box a {
    color: var(--auth-cyan);
}

.ls-auth-reset-box a:hover {
    color: var(--lp-green);
}

.ls-auth-card__footer {
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    font-size: 0.875rem;
    color: var(--lp-muted);
}

.ls-auth-card__footer a {
    color: var(--lp-green);
    font-weight: 700;
    text-decoration: none;
}

.ls-auth-card__footer a:hover {
    text-decoration: underline;
}

.ls-auth-cta {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.25rem 1rem;
    text-align: center;
}

.ls-auth-cta__card {
    padding: 2rem 1.5rem;
    border-radius: var(--lp-radius);
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.1) 0%, rgba(12, 12, 20, 0.95) 100%);
    border: 1px solid rgba(34, 197, 94, 0.22);
}

.ls-auth-cta__card--blue {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.1) 0%, rgba(12, 12, 20, 0.95) 100%);
    border-color: rgba(59, 130, 246, 0.22);
}

.ls-auth-cta__icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(34, 197, 94, 0.15);
    color: var(--lp-green);
    font-size: 1.4rem;
}

.ls-auth-cta__icon--blue {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.ls-auth-cta h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
}

.ls-auth-cta p {
    color: var(--lp-muted);
    margin: 0 auto 1rem;
    max-width: 28rem;
    line-height: 1.55;
}

.ls-auth-cta__perks {
    list-style: none;
    padding: 0;
    margin: 0 auto 1.25rem;
    max-width: 22rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-align: left;
}

.ls-auth-cta__perks li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--lp-muted);
}

.ls-auth-cta__perks i {
    color: var(--lp-green);
}

.ls-auth-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
}

/* Mobile: form-first — hide decorative hero, promo CTA, and footer */
@media (max-width: 767.98px) {
    .ls-auth-page .ls-auth-hero,
    .ls-auth-page .ls-auth-cta {
        display: none !important;
    }

    body.landing-short:has(.ls-auth-page) > .ls-footer,
    .ls-auth-page + .ls-footer {
        display: none !important;
    }

    .ls-auth-page {
        padding-top: calc(var(--lp-nav-h, 64px) + 0.75rem);
        padding-bottom: 1.5rem;
        min-height: calc(100dvh - var(--lp-nav-h, 64px));
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .ls-auth-wrap,
    .ls-auth-wrap--wide {
        width: 100%;
        max-width: 100%;
        padding: 0 1rem 0;
        margin: 0 auto;
    }

    .ls-auth-card {
        padding: 1.15rem 1rem 1rem;
    }

    .ls-auth-card__logo img {
        height: 36px;
    }
}
