:root {
    --l2c-brand: #3b51e3;
    --l2c-brand-deep: #2e40c4;
    --l2c-brand-rgb: 59, 81, 227;
    --l2c-cyan: #00bbc1;
    --l2c-ink: #191919;
    --l2c-muted: #5c6475;
    --l2c-line: #e4e7f2;
    --l2c-paper: #f6f7fb;
    --l2c-surface: #ffffff;
    --l2c-font: "DM Sans", "Segoe UI", sans-serif;
    --l2c-display: "Outfit", "DM Sans", sans-serif;
}

html[data-theme="dark"] {
    --l2c-ink: #f4f6ff;
    --l2c-muted: #9aa3bb;
    --l2c-line: #2c3148;
    --l2c-paper: #10121a;
    --l2c-surface: #171a24;
}

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

html,
body.l2c-auth-body {
    margin: 0;
    height: 100%;
}

body.l2c-auth-body {
    font-family: var(--l2c-font);
    color: var(--l2c-ink);
    background: var(--l2c-paper);
    -webkit-font-smoothing: antialiased;
}

.l2c-auth {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(320px, 1.05fr) minmax(340px, 0.95fr);
}

.l2c-auth-brand {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem 2.4rem 1.7rem;
    color: #fff;
    background:
        radial-gradient(720px 420px at 12% -10%, rgba(101, 135, 255, 0.38), transparent 58%),
        radial-gradient(560px 360px at 100% 90%, rgba(0, 187, 193, 0.22), transparent 52%),
        linear-gradient(160deg, #191919 0%, #1c2468 48%, #3b51e3 100%);
}

.l2c-auth-brand::after {
    content: "";
    position: absolute;
    inset: auto -8% -18% auto;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 40px;
    transform: rotate(18deg);
    pointer-events: none;
}

.l2c-auth-brand-logo {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: fit-content;
}

.l2c-auth-brand-logo .lm-brand-mark {
    height: 52px;
    max-width: 220px;
}

.l2c-auth-brand-copy {
    position: relative;
    z-index: 1;
    max-width: 34rem;
}

.l2c-auth-brand-copy small {
    display: inline-block;
    margin-bottom: 0.85rem;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #c9d2ff;
}

.l2c-auth-brand-copy h2 {
    margin: 0 0 0.85rem;
    font-family: var(--l2c-display);
    font-size: clamp(2.1rem, 4.2vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.l2c-auth-brand-copy > p:not(.l2c-auth-note) {
    margin: 0;
    max-width: 38ch;
    color: rgba(255,255,255,.78);
    font-size: 1.05rem;
    line-height: 1.55;
}

.l2c-auth-roles {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.75rem;
    margin-top: 1.7rem;
}

.l2c-auth-role {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    align-items: start;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
}

.l2c-auth-role-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #3B51E3 0%, #2838B0 100%);
    color: #fff;
    font-size: 1rem;
}

.l2c-auth-role-icon.is-seller {
    background: linear-gradient(145deg, #00BBC1 0%, #2E40C4 100%);
}

.l2c-auth-role b {
    display: block;
    font-family: var(--l2c-display);
    font-size: 0.98rem;
    font-weight: 700;
}

.l2c-auth-role span {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.82rem;
    line-height: 1.45;
    color: rgba(255,255,255,.72);
}

.l2c-auth-note {
    margin: 1rem 0 0;
    max-width: none;
    font-size: 0.8rem;
    color: rgba(255,255,255,.55);
}

.l2c-auth-brand-foot {
    position: relative;
    z-index: 1;
    margin-top: 2rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,.55);
}

.l2c-auth-panel {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--l2c-surface);
}

.l2c-auth-panel-bar {
    display: flex;
    justify-content: flex-end;
    padding: 1.1rem 1.3rem 0;
}

.l2c-auth-theme {
    width: 42px;
    height: 42px;
    border: 1px solid var(--l2c-line);
    border-radius: 12px;
    background: var(--l2c-surface);
    color: var(--l2c-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.l2c-auth-theme:hover {
    border-color: var(--l2c-brand);
    color: var(--l2c-brand);
}

.l2c-auth-theme .fa-sun-o { display: none; }
html[data-theme="dark"] .l2c-auth-theme .fa-sun-o { display: inline; }
html[data-theme="dark"] .l2c-auth-theme .fa-moon-o { display: none; }

.l2c-auth-panel-main {
    display: grid;
    place-items: center;
    padding: 1rem 1.5rem 1.4rem;
}

.l2c-auth-box {
    width: min(100%, 420px);
}

.l2c-auth-chip {
    display: inline-flex;
    margin: 0 0 0.85rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: rgba(var(--l2c-brand-rgb), 0.1);
    color: var(--l2c-brand-deep);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.l2c-auth-title {
    margin: 0 0 0.45rem;
    font-family: var(--l2c-display);
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.l2c-auth-sub {
    margin: 0 0 1.4rem;
    color: var(--l2c-muted);
    font-size: 0.98rem;
    line-height: 1.5;
}

.l2c-auth-form { display: grid; gap: 0.95rem; }

.l2c-auth-field { display: grid; gap: 0.38rem; }

.l2c-auth-label {
    font-size: 0.8rem;
    font-weight: 750;
}

.l2c-auth-control {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 52px;
    padding: 0 0.95rem;
    border-radius: 14px;
    border: 1.5px solid var(--l2c-line);
    background: var(--l2c-paper);
}

.l2c-auth-control:focus-within {
    border-color: var(--l2c-brand);
    background: var(--l2c-surface);
    box-shadow: 0 0 0 4px rgba(var(--l2c-brand-rgb), 0.14);
}

.l2c-auth-control-icon {
    width: 1.05rem;
    color: var(--l2c-muted);
    text-align: center;
}

.l2c-auth-control:focus-within .l2c-auth-control-icon {
    color: var(--l2c-brand);
}

.l2c-auth-input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--l2c-ink);
    font: inherit;
    font-size: 0.96rem;
    padding: 0.85rem 0;
}

.l2c-auth-input::placeholder { color: #9aa3b8; }
.l2c-auth-input.is-invalid { color: #c62828; }

.l2c-auth-eye {
    border: 0;
    background: transparent;
    color: var(--l2c-muted);
    cursor: pointer;
    padding: 0.28rem;
    border-radius: 8px;
}

.l2c-auth-eye:hover { color: var(--l2c-brand); }

.l2c-auth-field .invalid-feedback {
    display: block;
    font-size: 0.8rem;
    color: #c62828;
}

.l2c-auth-row {
    display: flex;
    justify-content: flex-end;
}

.l2c-auth-link {
    font-size: 0.86rem;
    font-weight: 750;
    color: var(--l2c-brand-deep);
    text-decoration: none;
}

.l2c-auth-link:hover { color: var(--l2c-brand); }

.l2c-auth-submit {
    width: 100%;
    margin-top: 0.2rem;
    border: 0;
    border-radius: 14px;
    background: var(--l2c-brand);
    color: #fff;
    font: inherit;
    font-size: 0.98rem;
    font-weight: 800;
    padding: 0.95rem 1.05rem;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(var(--l2c-brand-rgb), 0.28);
}

.l2c-auth-submit:hover {
    background: var(--l2c-brand-deep);
}

.l2c-auth-foot {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.86rem;
    color: var(--l2c-muted);
}

.l2c-auth-alert {
    margin: 0 0 0.95rem;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    background: rgba(var(--l2c-brand-rgb), 0.1);
    border: 1px solid rgba(var(--l2c-brand-rgb), 0.18);
    font-size: 0.86rem;
}

.l2c-auth-copy-block {
    margin: 0 0 1rem;
    color: var(--l2c-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.l2c-auth-copy-block strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--l2c-ink);
}

.l2c-auth-panel-meta {
    padding: 0 1.5rem 1.2rem;
    text-align: center;
    color: var(--l2c-muted);
    font-size: 0.76rem;
}

@media (max-width: 960px) {
    .l2c-auth {
        grid-template-columns: 1fr;
    }

    .l2c-auth-brand {
        min-height: auto;
        padding: 1.2rem 1.2rem 1.35rem;
    }

    .l2c-auth-brand-copy h2 { font-size: 1.55rem; }
    .l2c-auth-brand-foot { display: none; }

    .l2c-auth-panel { min-height: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .l2c-auth-submit,
    .l2c-auth-theme { transition: none; }
}
