/**
 * Auth — halka dark bg + top banner + form card
 */

:root {
    --lx-card: #ffffff;
    --lx-ink: #2c3345;
    --lx-muted: #8b93a7;
    --lx-line: #d8dde8;
    --lx-blue: #2f6bff;
    --lx-teal: #1ecad3;
    --lx-font: "Sora", "Outfit", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

body.rx-login-split {
    margin: 0;
    min-height: 100dvh;
    font-family: var(--lx-font);
    color: var(--lx-ink);
    background:
        radial-gradient(70% 55% at 10% 8%, rgba(47, 107, 255, 0.16), transparent 55%),
        radial-gradient(55% 45% at 92% 90%, rgba(139, 92, 246, 0.14), transparent 50%),
        linear-gradient(165deg, #2a3144 0%, #1e2433 48%, #1a1f2c 100%);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

.lx-shell {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: max(14px, env(safe-area-inset-top)) 14px calc(14px + env(safe-area-inset-bottom));
}

.lx-card {
    width: min(440px, 100%);
    display: flex;
    flex-direction: column;
    background: var(--lx-card);
    border-radius: 22px;
    overflow: hidden;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.32),
        0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* ── Upper banner (same width as card) ── */
.lx-banner {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    height: clamp(150px, 28vh, 200px);
    min-height: 150px;
    overflow: hidden;
    background:
        linear-gradient(160deg, #2a3350 0%, #1c2438 55%, #1a2030 100%);
    display: grid;
    place-items: center;
}

.lx-banner__track {
    position: absolute;
    inset: 0;
}

.lx-banner__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.lx-banner__slide.is-active { opacity: 1; }

.lx-banner__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lx-banner__fallback {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 18px 14px;
    pointer-events: none;
}

.lx-banner__icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 8px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.1);
    color: #c7d2fe;
    font-size: 1.15rem;
    border: 1px dashed rgba(165, 180, 252, 0.55);
}

.lx-banner__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #e8ecf8;
}

.lx-banner__hint {
    display: block;
    margin-top: 3px;
    font-size: 0.7rem;
    font-weight: 500;
    color: #9aa3b8;
}

.lx-banner__dots {
    position: absolute;
    z-index: 5;
    left: 0;
    right: 0;
    bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.lx-banner__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
}

.lx-banner__dot.is-active {
    background: #fff;
    box-shadow: 0 0 0 2px rgba(47, 107, 255, 0.5);
}

.lx-form {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.lx-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    margin-bottom: 10px;
    align-self: flex-start;
}

.lx-brand__mark {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #3b82f6, #06b6d4);
    flex-shrink: 0;
}

.lx-brand__mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lx-brand__mark span {
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
}

.lx-brand__name {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--lx-blue);
    text-transform: uppercase;
}

.lx-title {
    margin: 0 0 12px;
    font-size: 1.18rem;
    font-weight: 600;
    color: #3a4258;
    letter-spacing: -0.01em;
}

.lx-msg {
    margin: 0 0 10px;
    padding: 0.45rem 0.65rem;
    border-radius: 10px;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.35;
}

.lx-msg.is-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.lx-msg.is-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.lx-msg.hidden { display: none; }

.lx-field {
    display: block;
    margin-bottom: 12px;
}

.lx-field__label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #4b5568;
}

.lx-field__wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1.5px solid var(--lx-line);
    transition: border-color 0.2s ease;
}

.lx-field__wrap:focus-within {
    border-bottom-color: var(--lx-blue);
}

.lx-field__wrap input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    padding: 8px 0 9px;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--lx-ink);
}

.lx-field__wrap input::placeholder {
    color: #b0b7c8;
    font-weight: 400;
}

.lx-field__wrap input[readonly] {
    color: var(--lx-muted);
}

.lx-field__eye {
    border: none;
    background: transparent;
    color: var(--lx-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 0.9rem;
}

.lx-forgot-row {
    display: flex;
    justify-content: flex-end;
    margin: -2px 0 14px;
}

.lx-forgot {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--lx-blue);
    text-decoration: none;
}

.lx-terms {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 14px;
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--lx-muted);
    cursor: pointer;
    line-height: 1.35;
}

.lx-terms input {
    margin-top: 2px;
    accent-color: var(--lx-blue);
    flex-shrink: 0;
}

.lx-terms a {
    color: var(--lx-blue);
    font-weight: 700;
    text-decoration: none;
}

.lx-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.lx-actions--stack {
    grid-template-columns: 1fr;
    gap: 12px;
}

.lx-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin: 0;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #2f6bff 0%, #1ecad3 100%);
    box-shadow: 0 8px 22px rgba(47, 107, 255, 0.35);
    text-decoration: none;
    -webkit-appearance: none;
    appearance: none;
}

.lx-cta:active { transform: translateY(1px); }

.lx-cta--ghost {
    color: var(--lx-blue);
    background: #eef4ff;
    border: 1.5px solid #c7d7ff;
    box-shadow: none;
}

.lx-cta--ghost:hover {
    background: #e4edff;
}

.lx-switch {
    margin: 0;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--lx-muted);
    line-height: 1.4;
}

.lx-switch a {
    color: var(--lx-blue);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.lx-switch a:hover {
    opacity: 0.9;
}

.lx-foot {
    margin: 14px 0 0;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--lx-muted);
}

.lx-foot a {
    color: var(--lx-blue);
    font-weight: 700;
    text-decoration: none;
}

/* ── Company trust topics (new ribbon look) ── */
.lx-trust {
    width: min(440px, 100%);
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lx-trust__head {
    margin: 0 0 4px 2px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(232, 236, 248, 0.55);
}

.lx-trust__item {
    position: relative;
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 12px;
    padding: 11px 14px 11px 10px;
    background: linear-gradient(105deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 10px 50%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.18s ease, background 0.18s ease;
}

.lx-trust__item:nth-child(even) {
    clip-path: polygon(14px 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 14px 100%, 0 50%);
    padding-left: 16px;
    padding-right: 10px;
}

.lx-trust__item:hover {
    transform: translateX(3px);
    background: linear-gradient(105deg, rgba(46, 196, 182, 0.16) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.lx-trust__num {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    font-size: 0.78rem;
    font-weight: 800;
    color: #0f172a;
    background: linear-gradient(135deg, #5eead4, #38bdf8);
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.25);
}

.lx-trust__body {
    min-width: 0;
}

.lx-trust__title {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.25;
}

.lx-trust__text {
    margin: 2px 0 0;
    font-size: 0.68rem;
    font-weight: 500;
    color: rgba(226, 232, 240, 0.62);
    line-height: 1.35;
}

@media (max-height: 700px) {
    .lx-banner {
        height: clamp(120px, 22vh, 160px);
        min-height: 120px;
    }

    .lx-banner__hint { display: none; }

    .lx-form { padding: 14px 16px 16px; }

    .lx-field { margin-bottom: 8px; }

    .lx-cta { min-height: 40px; }
}
