:root {
    --auth-primary: #003d9b;
    --auth-primary-container: #0052cc;
    --auth-secondary: #4648d4;
    --auth-bg: #faf8ff;
    --auth-surface: #ffffff;
    --auth-low: #f3f3fd;
    --auth-gray: #f8fafc;
    --auth-high: #e1e2ec;
    --auth-line: #c3c6d6;
    --auth-text: #191b23;
    --auth-muted: #434654;
    --auth-outline: #737685;
    --auth-red: #ef4444;
    --auth-green: #22c55e;
    --auth-display: "Plus Jakarta Sans", system-ui, sans-serif;
    --auth-body: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body.ldm-auth-page {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: var(--auth-bg);
    color: var(--auth-text);
    font-family: var(--auth-body);
}
.ldm-auth-page a { color: inherit; text-decoration: none; }
.material-symbols-outlined { line-height: 1; vertical-align: middle; }
.auth-live-bar {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 40px;
    padding: 8px 32px;
    background: var(--auth-red);
    color: #fff;
}
.auth-live-bar a {
    border-radius: 999px;
    background: rgba(255,255,255,.2);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    padding: 4px 16px;
}
.auth-login-shell {
    position: relative;
    display: grid;
    min-height: calc(100vh - 40px);
    place-items: center;
    overflow: hidden;
    padding: 32px 16px;
}
.auth-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(100px);
    opacity: .55;
    pointer-events: none;
    animation: authFloat 6s ease-in-out infinite;
}
.auth-orb--one {
    top: -10%;
    left: -5%;
    width: min(420px, 42vw);
    height: min(420px, 42vw);
    background: rgba(0, 61, 155, .13);
}
.auth-orb--two {
    right: -5%;
    bottom: 0;
    width: min(340px, 34vw);
    height: min(340px, 34vw);
    background: rgba(70, 72, 212, .13);
    animation-delay: -2s;
}
.auth-login-wrap {
    position: relative;
    z-index: 1;
    width: min(100%, 480px);
}
.auth-brand-block {
    margin-bottom: 28px;
    text-align: center;
}
.auth-brand-block a {
    color: var(--auth-primary);
    font-family: var(--auth-display);
    font-size: 44px;
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: 1.05;
}
.auth-brand-block p {
    color: var(--auth-muted);
    font-size: 14px;
    font-weight: 800;
    margin: 10px 0 0;
}
.auth-glass-card {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 16px;
    background: rgba(255,255,255,.82);
    box-shadow: 0 18px 45px rgba(25,27,35,.08);
    backdrop-filter: blur(14px);
}
.auth-toggle {
    display: flex;
    border-bottom: 1px solid rgba(195,198,214,.45);
}
.auth-toggle button {
    flex: 1;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--auth-muted);
    font-weight: 900;
    padding: 16px;
}
.auth-toggle button.is-active {
    border-bottom-color: var(--auth-primary);
    color: var(--auth-primary);
}
.auth-form {
    display: grid;
    gap: 12px;
    padding: 32px;
}
.auth-form label,
.auth-label-row label {
    color: var(--auth-muted);
    font-size: 14px;
    font-weight: 800;
}
.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}
.auth-label-row a {
    color: var(--auth-primary);
    font-size: 14px;
    font-weight: 800;
}
.auth-field {
    position: relative;
}
.auth-field > span {
    position: absolute;
    top: 50%;
    left: 12px;
    color: var(--auth-outline);
    transform: translateY(-50%);
}
.auth-field input,
.auth-field select {
    width: 100%;
    height: 50px;
    border: 1px solid var(--auth-line);
    border-radius: 8px;
    background: #fff;
    outline: 0;
    padding: 0 46px 0 42px;
}
.auth-field input:focus,
.auth-field select:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px rgba(0,61,155,.15);
}
.auth-field button {
    position: absolute;
    top: 50%;
    right: 8px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--auth-outline);
    transform: translateY(-50%);
}
.auth-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}
.auth-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--auth-primary);
}
.auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 999px;
    background: var(--auth-primary);
    color: #fff;
    font-weight: 900;
    padding: 14px;
    box-shadow: 0 14px 24px rgba(0,61,155,.18);
}
.auth-submit:hover { background: var(--auth-primary-container); }
.auth-submit:disabled { cursor: not-allowed; opacity: .72; }
.auth-message {
    display: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    line-height: 20px;
    margin: 0;
    padding: 10px 12px;
}
.auth-message:not(:empty) { display: block; }
.auth-message.is-error { background: #ffdad6; color: #93000a; }
.auth-message.is-success { background: #dcfce7; color: #166534; }
.auth-message.is-info { background: #dae2ff; color: #001848; }
.auth-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    border-top: 1px solid rgba(195,198,214,.4);
    margin: 0 32px 32px;
    padding-top: 24px;
    color: var(--auth-muted);
    opacity: .72;
}
.auth-trust span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.auth-trust i { color: var(--auth-green); }
.auth-login-links {
    display: grid;
    gap: 14px;
    margin-top: 28px;
    text-align: center;
}
.auth-login-links p {
    color: var(--auth-muted);
    font-weight: 800;
    margin: 0;
}
.auth-login-links a {
    color: var(--auth-primary);
    font-weight: 900;
}
.auth-login-links nav {
    display: flex;
    justify-content: center;
    gap: 14px;
    color: var(--auth-outline);
    font-weight: 800;
}
.auth-footer,
.auth-register-footer {
    border-top: 1px solid var(--auth-line);
    background: var(--auth-high);
    padding: 28px 32px;
}
.auth-footer > div,
.auth-register-footer > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(100%, 1180px);
    margin: 0 auto;
}
.auth-footer b,
.auth-register-footer b {
    display: block;
    color: var(--auth-primary);
    font-family: var(--auth-display);
    font-size: 22px;
    font-weight: 900;
}
.auth-footer p,
.auth-register-footer span {
    color: var(--auth-muted);
    margin: 4px 0 0;
    opacity: .75;
}
.auth-footer nav,
.auth-register-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    color: var(--auth-muted);
    font-weight: 800;
}
.auth-register-shell {
    display: flex;
    min-height: calc(100vh - 40px);
}
.auth-register-visual {
    position: relative;
    display: flex;
    width: 50%;
    min-height: 720px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--auth-primary);
    padding: 48px;
}
.auth-register-visual img,
.auth-register-visual > div {
    position: absolute;
    inset: 0;
}
.auth-register-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: overlay;
    opacity: .8;
}
.auth-register-visual > div {
    background: linear-gradient(35deg, rgba(0,61,155,.7), transparent 70%);
}
.auth-register-visual article {
    position: relative;
    z-index: 1;
    max-width: 540px;
    color: #fff;
}
.auth-register-visual h1 {
    font-family: var(--auth-display);
    font-size: 48px;
    font-weight: 900;
    line-height: 56px;
    margin: 0 0 22px;
}
.auth-register-visual p {
    color: rgba(255,255,255,.9);
    font-size: 18px;
    line-height: 28px;
    margin-bottom: 28px;
}
.auth-register-visual ul {
    display: grid;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.auth-register-visual li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}
.auth-register-visual li span { color: var(--auth-green); }
.auth-register-form-wrap {
    display: grid;
    flex: 1;
    place-items: center;
    background: var(--auth-low);
    padding: 32px;
}
.auth-register-card {
    width: min(100%, 480px);
    border: 1px solid rgba(195,198,214,.3);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(25,27,35,.05);
    padding: 32px;
}
.auth-register-card header {
    margin-bottom: 24px;
}
.auth-register-card header a {
    display: block;
    color: var(--auth-primary);
    font-family: var(--auth-display);
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: 1.08;
    margin-bottom: 12px;
}
.auth-register-card h1 {
    font-family: var(--auth-display);
    font-size: 24px;
    font-weight: 800;
    margin: 0;
}
.auth-register-card header p {
    color: var(--auth-muted);
    margin: 4px 0 0;
}
.auth-register-form {
    padding: 0;
}
.auth-register-form .auth-field input {
    background: var(--auth-gray);
}
.auth-register-submit {
    background: var(--auth-primary-container);
    margin-top: 4px;
}
.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 28px 0 22px;
}
.auth-divider span {
    flex: 1;
    height: 1px;
    background: rgba(195,198,214,.55);
}
.auth-divider b {
    color: var(--auth-muted);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.auth-socials {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.auth-socials button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--auth-line);
    border-radius: 10px;
    background: #fff;
    font-weight: 800;
    padding: 11px;
}
.auth-socials svg {
    width: 20px;
    height: 20px;
}
.auth-register-login {
    color: var(--auth-muted);
    margin: 28px 0 0;
    text-align: center;
}
.auth-register-login a {
    color: var(--auth-primary);
    font-weight: 900;
}
@keyframes authFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@media (max-width: 860px) {
    .auth-register-shell { display: block; }
    .auth-register-visual { display: none; }
    .auth-register-form-wrap { min-height: calc(100vh - 40px); }
}
@media (max-width: 700px) {
    .auth-live-bar {
        gap: 8px;
        padding-inline: 14px;
        text-align: center;
    }
    .auth-live-bar a { display: none; }
    .auth-brand-block a { font-size: 30px; }
    .auth-form { padding: 24px; }
    .auth-trust { margin-inline: 24px; }
    .auth-footer > div,
    .auth-register-footer > div {
        display: grid;
        justify-items: center;
        text-align: center;
    }
    .auth-register-form-wrap { padding: 18px; }
    .auth-register-card { padding: 24px; }
    .auth-register-card header a { font-size: 25px; }
    .auth-register-footer nav { justify-content: center; }
}
