:root {
    color-scheme: light;
    --md-accent: #ffcd02;
    --md-accent-ink: #2b2100;
    --md-bg: #070b17;
    --md-surface: #0a1023;
    --md-surface-2: #0d1630;
    --md-surface-3: #101f3f;
    --md-panel: #ffffff;
    --md-text: #0f172a;
    --md-muted: #55657e;
    --md-primary: #0f1f38;
    --md-primary-600: #0b172b;
    --md-primary-700: #070f1f;
    --md-border: rgba(255, 255, 255, 0.12);
    --md-border-ink: rgba(15, 23, 42, 0.1);
    --md-danger: #d92d20;
    --md-success: #12b76a;
    --md-warning: #f79009;
    --md-focus: #ffe07a;
    --md-shadow-1: 0 24px 48px rgba(0, 0, 0, 0.22);
    --md-shadow-2: 0 30px 70px rgba(15, 23, 42, 0.18);
    --r-xs: 8px;
    --r-sm: 12px;
    --r-md: 16px;
    --r-lg: 22px;
    --r-xl: 28px;
    --r-2xl: 36px;
    --r-pill: 999px;
    --sp-1: 0.25rem;
    --sp-2: 0.5rem;
    --sp-3: 0.75rem;
    --sp-4: 1rem;
    --sp-5: 1.5rem;
    --sp-6: 2rem;
    --sp-7: 3rem;
    --sp-8: 4rem;
    --font-sans: "Open Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --auth-card-max: 1100px;
    --auth-card-minh: clamp(560px, 70vh, 760px);
    --auth-gutter: clamp(1rem, 3vw, 3rem);
    --auth-panel-pad: clamp(1.25rem, 2.5vw, 2.75rem);
    --auth-fs-title: clamp(1.4rem, 1.15rem + 1.1vw, 2.2rem);
    --auth-fs-body: clamp(0.95rem, 0.9rem + 0.25vw, 1.02rem);
    --auth-fs-muted: clamp(0.82rem, 0.78rem + 0.2vw, 0.92rem);
    --auth-fs-muted-sm: clamp(0.78rem, 0.74rem + 0.18vw, 0.88rem);
    --auth-fs-muted-xs: clamp(0.74rem, 0.70rem + 0.16vw, 0.84rem);
    --auth-control-h: 48px;
    --auth-control-r: var(--r-sm);
    --auth-control-pad-x: 0.95rem;
    --auth-control-fs: clamp(16px, 0.98rem, 1rem);
    --md-orbit-size: clamp(240px, 42vw, 440px);
}

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

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--md-text);
    background: var(--md-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;
}

img {
    border: 0;
    outline: none;
    text-decoration: none;
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

a {
    color: inherit;
}

:focus-visible {
    outline: none;
}

.auth-shell {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: radial-gradient(circle at 16% 18%, rgba(17, 46, 104, 0.38), transparent 40%), radial-gradient(circle at 80% 12%, rgba(15, 38, 86, 0.32), transparent 42%), radial-gradient(circle at 60% 86%, rgba(10, 22, 44, 0.45), transparent 46%), linear-gradient(165deg, #050812 0%, #0a1325 48%, #050812 100%);
}

@supports (min-height: 100dvh) {
    .auth-shell {
        min-height: 100dvh;
    }
}

.auth-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.auth-glow {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    opacity: 0.45;
    background: radial-gradient(circle, rgba(22, 58, 128, 0.3), transparent 65%);
    animation: authPulse 12s ease-in-out infinite;
    will-change: transform, opacity;
}

.auth-glow--left {
    top: -160px;
    left: -120px;
}

.auth-glow--right {
    bottom: -200px;
    right: -140px;
    animation-delay: -6s;
}

.auth-main {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: var(--auth-gutter);
}

@supports (min-height: 100dvh) {
    .auth-main {
        min-height: 100dvh;
    }
}

.auth-skip-link {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    transform: translateY(-200%);
    background: #ffffff;
    color: var(--md-primary);
    padding: 0.6rem 1rem;
    border-radius: var(--r-pill);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
    font-weight: 700;
    text-decoration: none;
    transition: transform 140ms ease;
    z-index: 10;
}

    .auth-skip-link:focus-visible {
        transform: translateY(0);
        box-shadow: 0 0 0 4px rgba(255, 224, 122, 0.35), 0 14px 30px rgba(0, 0, 0, 0.18);
    }

.auth-card {
    width: min(var(--auth-card-max), 100%);
    min-height: var(--auth-card-minh);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.96));
    border-radius: var(--r-2xl);
    box-shadow: var(--md-shadow-2);
    border: 1px solid rgba(15, 23, 42, 0.08);
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    overflow: hidden;
    position: relative;
}

.auth-panel {
    padding: var(--auth-panel-pad);
    display: grid;
    gap: var(--sp-4);
    min-width: 0;
}

.auth-panel--brand {
    position: relative;
    color: rgba(248, 250, 252, 0.9);
    background: linear-gradient(150deg, rgba(15, 31, 56, 0.98), rgba(7, 15, 31, 0.98));
    overflow: hidden;
}

.auth-shell.md-auth-space .auth-panel--brand::before {
    content: "";
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at 18% 22%, rgba(98, 140, 255, 0.28), transparent 45%), radial-gradient(circle at 78% 18%, rgba(120, 210, 255, 0.22), transparent 42%), radial-gradient(circle at 35% 78%, rgba(140, 110, 255, 0.2), transparent 48%), radial-gradient(circle at 85% 75%, rgba(60, 160, 255, 0.18), transparent 46%), radial-gradient(circle at 55% 45%, rgba(255, 255, 255, 0.08), transparent 55%), repeating-radial-gradient(circle, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 14px), repeating-radial-gradient(circle, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 20px), radial-gradient(circle at 50% 50%, rgba(5, 10, 20, 0.65), rgba(5, 10, 20, 0.95));
    opacity: 0.7;
    pointer-events: none;
    mix-blend-mode: screen;
    filter: blur(1px);
}

.auth-panel--content {
    background: #ffffff;
    position: relative;
    padding-bottom: calc(var(--auth-panel-pad) + env(safe-area-inset-bottom));
}

.md-panel-left::after {
    content: "";
    position: absolute;
    inset: 1.2rem;
    border-radius: var(--r-xl);
    border: 1px solid rgba(255, 255, 255, 0.16);
    opacity: 0.6;
    pointer-events: none;
}

.md-panel-frame {
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    border-radius: 28px;
}

.md-auth-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
    position: relative;
    z-index: 1;
    min-width: 0;
}

.md-auth-brand-header {
    display: flex;
    align-items: center;
}

.md-auth-brand-logo {
    height: 30px;
    width: auto;
}

.md-auth-brand-hero {
    display: grid;
    gap: 0.5rem;
}

.md-auth-brand-top {
    display: grid;
    gap: 1.25rem;
}

.md-auth-brand-bottom {
    margin-top: auto;
    padding-top: clamp(0.6rem, 1.6vw, 1.2rem);
    display: grid;
    gap: 1.25rem;
    position: relative;
    z-index: 2;
    justify-items: start;
}

.md-auth-brand-label,
.auth-brand-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(248, 250, 252, 0.55);
}

.md-auth-brand-title {
    margin: 0;
    font-size: clamp(1.5rem, 2.1vw, 2.1rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.md-auth-brand-text {
    margin: 0;
    color: rgba(248, 250, 252, 0.78);
    max-width: 36ch;
    font-size: var(--auth-fs-body);
    line-height: 1.5;
}

.md-auth-brand-slogan {
    margin: 0.35rem 0 0;
    color: rgba(248, 250, 252, 0.6);
    font-size: 0.9rem;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

.md-auth-brand-list,
.auth-brand-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.6rem;
    font-size: 0.92rem;
    color: rgba(248, 250, 252, 0.78);
}

    .md-auth-brand-list li,
    .auth-brand-list li {
        position: relative;
        padding-left: 1.4rem;
    }

        .md-auth-brand-list li::before,
        .auth-brand-list li::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0.55rem;
            width: 7px;
            height: 7px;
            border-radius: 999px;
            background: var(--md-accent);
            box-shadow: 0 0 0 4px rgba(255, 205, 2, 0.12);
        }

.md-auth-brand-card {
    position: relative;
    padding: 1rem 1.1rem 1.4rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 22px 44px rgba(7, 11, 23, 0.35);
    display: grid;
    gap: 0.6rem;
    width: min(55%, 460px);
    min-width: 320px;
    overflow: hidden;
    justify-self: start;
    margin: 0;
    transform: translateY(44px);
}

@supports ((-webkit-backdrop-filter: blur(9px)) or (backdrop-filter: blur(9px))) {
    .md-auth-brand-card {
        backdrop-filter: blur(9px);
        -webkit-backdrop-filter: blur(9px);
    }
}

.md-auth-brand-card-head {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(248, 250, 252, 0.72);
}

.md-auth-brand-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: rgba(248, 250, 252, 0.78);
}

    .md-auth-brand-card-list li {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

.md-auth-brand-card-icon {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--md-accent);
    box-shadow: 0 0 0 3px rgba(255, 205, 2, 0.1);
    flex: 0 0 auto;
}

.md-auth-brand-preview {
    position: absolute;
    right: 0.75rem;
    bottom: 0.7rem;
    width: 128px;
    padding: 0.7rem 0.6rem;
    border-radius: 14px;
    background: rgba(15, 31, 56, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    gap: 0.35rem;
}

.md-auth-brand-preview-line {
    height: 6px;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.24);
}

    .md-auth-brand-preview-line:nth-child(2) {
        width: 70%;
    }

    .md-auth-brand-preview-line:nth-child(3) {
        width: 55%;
    }

.md-auth-brand-wave {
    margin-top: 0;
    opacity: 0.18;
    width: 100%;
    align-self: stretch;
    justify-self: stretch;
}

    .md-auth-brand-wave svg {
        width: 100%;
        height: 40px;
    }

    .md-auth-brand-wave path {
        fill: none;
        stroke: rgba(255, 255, 255, 0.18);
        stroke-width: 1;
    }

.md-auth-activity {
    display: grid;
    gap: 0.6rem;
    width: 100%;
    position: relative;
    --md-activity-line-height: 1.3rem;
    --md-activity-gap: 0.45rem;
}

.md-auth-activity-lines {
    display: grid;
    gap: var(--md-activity-gap);
    height: calc(var(--md-activity-line-height) * 3 + var(--md-activity-gap) * 2);
    overflow: hidden;
    transition: transform 340ms cubic-bezier(0.22, 0.72, 0.2, 1);
    align-content: start;
    justify-items: start;
    padding-left: 4px;
}

.md-auth-activity-line {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    line-height: var(--md-activity-line-height);
    min-height: var(--md-activity-line-height);
    font-size: 0.88rem;
    color: rgba(248, 250, 252, 0.78);
    letter-spacing: 0.01em;
}

    .md-auth-activity-line::before {
        content: "";
        width: 6px;
        height: 6px;
        border-radius: 999px;
        background: var(--md-accent);
        box-shadow: 0 0 0 3px rgba(255, 205, 2, 0.1);
        flex: 0 0 auto;
        opacity: 0.9;
        will-change: transform;
    }

    .md-auth-activity-line.is-active::before {
        animation: mdAuthDotPulse 520ms cubic-bezier(0.22, 0.8, 0.24, 1);
    }

    .md-auth-activity-line.is-active::after {
        content: "";
        display: inline-block;
        width: 1px;
        height: 0.9em;
        margin-left: 4px;
        background: rgba(255, 255, 255, 0.55);
        opacity: 0.35;
        animation: mdAuthCaret 1.1s steps(1) infinite;
        vertical-align: -0.1em;
    }

.md-auth-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

.md-enterprise-orbit {
    position: absolute;
    left: 50%;
    top: calc(50% + 30px);
    width: clamp(210px, 30vw, 320px);
    height: clamp(210px, 30vw, 320px);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 260ms ease;
    --md-orbit-sun-angle: 0deg;
    --md-orbit-moon-angle: 180deg;
    --md-orbit-mercury-angle: 24deg;
    --md-orbit-venus-angle: 62deg;
    --md-orbit-earth-angle: 118deg;
    --md-orbit-mars-angle: 168deg;
    --md-orbit-jupiter-angle: 214deg;
    --md-orbit-saturn-angle: 252deg;
    --md-orbit-uranus-angle: 298deg;
    --md-orbit-neptune-angle: 332deg;
    --md-sun-size: 12px;
    --md-planet-min: 3.6px;
    --md-planet-max: calc(var(--md-sun-size) * 0.9);
}

@supports (mask-image: linear-gradient(90deg, transparent, #000)) {
    .md-enterprise-orbit {
        mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.9) 32%, #000 100%);
    }
}

.md-enterprise-orbit.is-ready {
    opacity: 0.78;
}

.md-enterprise-orbit__glow {
    position: absolute;
    inset: 18%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 205, 2, 0.14) 0%, rgba(255, 205, 2, 0.04) 55%, transparent 72%);
    filter: blur(2px);
}

.md-enterprise-orbit__grid {
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 40%, transparent 68%), repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.07) 1px, transparent 1px, transparent 12px), repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.06) 1px, transparent 1px, transparent 12px);
    opacity: 0.18;
}

@supports (mask-image: radial-gradient(circle, #000, transparent)) {
    .md-enterprise-orbit__grid {
        mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, 0.8) 55%, transparent 72%);
    }
}

.md-enterprise-orbit__rings {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.md-enterprise-orbit__ring {
    fill: none;
    stroke: rgba(255, 255, 255, 0.16);
    stroke-width: 1;
    stroke-dasharray: 6 10;
    animation: mdEnterpriseRingFlow 18s linear infinite;
}

.md-enterprise-orbit__ring--b {
    stroke: rgba(255, 255, 255, 0.12);
    stroke-dasharray: 10 14;
    animation-duration: 24s;
}

.md-enterprise-orbit__ring--c {
    stroke: rgba(255, 255, 255, 0.09);
    stroke-dasharray: 4 18;
    animation-duration: 30s;
}

.md-enterprise-orbit__track {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    will-change: transform;
}

.md-enterprise-orbit__track--sun {
    transform: rotate(var(--md-orbit-sun-angle)) scaleX(1.08) scaleY(0.9);
}

.md-enterprise-orbit__track--moon {
    transform: rotate(var(--md-orbit-moon-angle)) scaleX(0.86) scaleY(1.12);
}

.md-enterprise-orbit__track--mercury {
    transform: rotate(var(--md-orbit-mercury-angle)) scaleX(0.92) scaleY(0.86);
}

.md-enterprise-orbit__track--venus {
    transform: rotate(var(--md-orbit-venus-angle)) scaleX(0.98) scaleY(0.9);
}

.md-enterprise-orbit__track--earth {
    transform: rotate(var(--md-orbit-earth-angle)) scaleX(1.06) scaleY(0.92);
}

.md-enterprise-orbit__track--mars {
    transform: rotate(var(--md-orbit-mars-angle)) scaleX(1.12) scaleY(0.86);
}

.md-enterprise-orbit__track--jupiter {
    transform: rotate(var(--md-orbit-jupiter-angle)) scaleX(0.9) scaleY(1.08);
}

.md-enterprise-orbit__track--saturn {
    transform: rotate(var(--md-orbit-saturn-angle)) scaleX(1.02) scaleY(1.12);
}

.md-enterprise-orbit__track--uranus {
    transform: rotate(var(--md-orbit-uranus-angle)) scaleX(0.86) scaleY(1.06);
}

.md-enterprise-orbit__track--neptune {
    transform: rotate(var(--md-orbit-neptune-angle)) scaleX(0.96) scaleY(1.02);
}

.md-enterprise-orbit__sat {
    position: absolute;
    top: 6.5%;
    left: 50%;
    width: var(--md-sun-size);
    height: var(--md-sun-size);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 4px rgba(255, 205, 2, 0.18), 0 0 18px rgba(255, 205, 2, 0.35);
}

.md-enterprise-orbit__sat--sun {
    background: #ffcd02;
    box-shadow: 0 0 0 4px rgba(255, 205, 2, 0.2), 0 0 20px rgba(255, 205, 2, 0.45);
}

.md-enterprise-orbit__sat--moon {
    width: calc(var(--md-sun-size) * 0.9);
    height: calc(var(--md-sun-size) * 0.9);
    background: #b7c2d4;
    box-shadow: 0 0 0 4px rgba(183, 194, 212, 0.2), 0 0 16px rgba(183, 194, 212, 0.3);
}

.md-enterprise-orbit__sat--mercury {
    width: clamp(var(--md-planet-min), calc(var(--md-sun-size) * 0.0035 * 12), var(--md-planet-max));
    height: clamp(var(--md-planet-min), calc(var(--md-sun-size) * 0.0035 * 12), var(--md-planet-max));
    background: #9aa3b2;
    box-shadow: 0 0 0 1px rgba(154, 163, 178, 0.2);
}

.md-enterprise-orbit__sat--venus {
    width: clamp(var(--md-planet-min), calc(var(--md-sun-size) * 0.0087 * 12), var(--md-planet-max));
    height: clamp(var(--md-planet-min), calc(var(--md-sun-size) * 0.0087 * 12), var(--md-planet-max));
    background: #e6c46a;
    box-shadow: 0 0 0 3px rgba(230, 196, 106, 0.2), 0 0 10px rgba(230, 196, 106, 0.2);
}

.md-enterprise-orbit__sat--earth {
    width: clamp(var(--md-planet-min), calc(var(--md-sun-size) * 0.0092 * 12), var(--md-planet-max));
    height: clamp(var(--md-planet-min), calc(var(--md-sun-size) * 0.0092 * 12), var(--md-planet-max));
    background: #4f8cff;
    box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.2), 0 0 10px rgba(79, 140, 255, 0.25);
}

.md-enterprise-orbit__sat--mars {
    width: clamp(var(--md-planet-min), calc(var(--md-sun-size) * 0.0049 * 12), var(--md-planet-max));
    height: clamp(var(--md-planet-min), calc(var(--md-sun-size) * 0.0049 * 12), var(--md-planet-max));
    background: #d46d5b;
    box-shadow: 0 0 0 2px rgba(212, 109, 91, 0.2), 0 0 8px rgba(212, 109, 91, 0.2);
}

.md-enterprise-orbit__sat--jupiter {
    width: clamp(var(--md-planet-min), calc(var(--md-sun-size) * 0.1005 * 12), var(--md-planet-max));
    height: clamp(var(--md-planet-min), calc(var(--md-sun-size) * 0.1005 * 12), var(--md-planet-max));
    background: #c7a274;
    box-shadow: 0 0 0 5px rgba(199, 162, 116, 0.2), 0 0 14px rgba(199, 162, 116, 0.22);
}

.md-enterprise-orbit__sat--saturn {
    width: clamp(var(--md-planet-min), calc(var(--md-sun-size) * 0.0837 * 12), var(--md-planet-max));
    height: clamp(var(--md-planet-min), calc(var(--md-sun-size) * 0.0837 * 12), var(--md-planet-max));
    background: #d7c6a1;
    box-shadow: 0 0 0 4px rgba(215, 198, 161, 0.2), 0 0 12px rgba(215, 198, 161, 0.22);
}

.md-enterprise-orbit__sat--uranus {
    width: clamp(var(--md-planet-min), calc(var(--md-sun-size) * 0.0364 * 12), var(--md-planet-max));
    height: clamp(var(--md-planet-min), calc(var(--md-sun-size) * 0.0364 * 12), var(--md-planet-max));
    background: #6fd0c8;
    box-shadow: 0 0 0 3px rgba(111, 208, 200, 0.2), 0 0 10px rgba(111, 208, 200, 0.22);
}

.md-enterprise-orbit__sat--neptune {
    width: clamp(var(--md-planet-min), calc(var(--md-sun-size) * 0.0354 * 12), var(--md-planet-max));
    height: clamp(var(--md-planet-min), calc(var(--md-sun-size) * 0.0354 * 12), var(--md-planet-max));
    background: #3a6fd8;
    box-shadow: 0 0 0 3px rgba(58, 111, 216, 0.2), 0 0 10px rgba(58, 111, 216, 0.24);
}

.md-enterprise-orbit__core {
    position: absolute;
    inset: 34%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.08) 45%, rgba(255, 255, 255, 0.02) 70%, transparent 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 28px rgba(7, 11, 23, 0.45);
}

.auth-brand {
    display: grid;
    gap: var(--sp-4);
}

.auth-logo {
    height: 34px;
    width: auto;
}

.auth-brand-copy h1 {
    margin: 0;
    font-size: var(--auth-fs-title);
    letter-spacing: -0.01em;
}

.auth-brand-copy p {
    margin: var(--sp-2) 0 0;
    color: rgba(248, 250, 252, 0.76);
    max-width: 30ch;
    font-size: var(--auth-fs-body);
}

.auth-orbit {
    position: relative;
    height: 220px;
    align-self: center;
}

.auth-orbit-ring {
    position: absolute;
    inset: 20px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.22);
    animation: authSpin 44s linear infinite;
}

.auth-orbit-ring--small {
    inset: 62px;
    border-style: solid;
    opacity: 0.32;
    animation-duration: 36s;
}

.auth-orbit-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--md-accent);
    top: 20px;
    left: calc(50% - 3px);
    box-shadow: 0 0 0 5px rgba(255, 205, 2, 0.1);
    animation: authOrbit 22s linear infinite;
}

.md-auth {
    padding: clamp(1.75rem, 2.4vw, 2.5rem) clamp(1.25rem, 2.4vw, 2.5rem) clamp(1.5rem, 2vw, 2.25rem);
}

.md-auth-header {
    margin-bottom: 1.25rem;
}

.md-auth-title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.4rem, 1.25rem + 0.8vw, 1.625rem);
    line-height: 1.25;
    font-weight: 700;
    color: var(--md-text);
}

.md-auth-subtitle {
    margin: 0;
    color: var(--md-muted);
    font-size: var(--auth-fs-muted);
    line-height: 1.55;
}

.auth-panel--content .auth-form,
.md-auth-form {
    display: grid;
    gap: 1rem;
}

.md-auth-field,
.auth-field {
    display: grid;
    gap: 0.5rem;
}

.md-auth-label-row,
.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.md-auth-label,
.auth-field label {
    font-size: 0.78rem;
    line-height: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--md-muted);
}

.md-auth-input,
.auth-input {
    width: 100%;
    min-height: var(--auth-control-h);
    height: var(--auth-control-h);
    border-radius: var(--auth-control-r);
    border: 1px solid var(--md-border-ink);
    padding: 0 var(--auth-control-pad-x);
    box-sizing: border-box;
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
    font-size: var(--auth-control-fs);
    -webkit-text-size-adjust: 100%;
}

    .md-auth-input::placeholder,
    .auth-input::placeholder {
        color: rgba(85, 101, 126, 0.6);
        font-size: 0.9em;
    }

    .md-auth-input:hover,
    .auth-input:hover {
        border-color: rgba(15, 31, 56, 0.45);
    }

    .md-auth-input:focus,
    .auth-input:focus {
        outline: none;
        border-color: rgba(15, 31, 56, 0.72);
        box-shadow: 0 0 0 3px rgba(15, 31, 56, 0.16);
    }

    .md-auth-input:focus-visible,
    .auth-input:focus-visible {
        box-shadow: 0 0 0 3px rgba(255, 224, 122, 0.22), 0 0 0 6px rgba(15, 31, 56, 0.12);
    }

.md-auth-input-wrap,
.auth-input-wrap {
    position: relative;
}

    .md-auth-input-wrap .md-auth-input,
    .auth-input-wrap .auth-input {
        padding-right: 3.1rem;
    }

.md-auth-toggle,
.auth-toggle {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: var(--md-muted);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.auth-toggle {
    width: 36px;
    height: 36px;
    right: 0.45rem;
}

    .md-auth-toggle:hover,
    .auth-toggle:hover {
        background: rgba(15, 23, 42, 0.08);
        color: var(--md-primary);
    }

    .md-auth-toggle:focus-visible,
    .auth-toggle:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px rgba(255, 224, 122, 0.22), 0 0 0 6px rgba(15, 31, 56, 0.12);
    }

.md-auth-toggle-icon,
.auth-toggle-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
}

    .md-auth-toggle-icon svg,
    .auth-toggle-icon svg {
        width: 100%;
        height: 100%;
        fill: currentColor;
    }

.md-auth-toggle.is-visible .md-auth-toggle-icon--show,
.auth-toggle.is-visible .auth-toggle-icon--show {
    display: none;
}

.md-auth-toggle:not(.is-visible) .md-auth-toggle-icon--hide,
.auth-toggle:not(.is-visible) .auth-toggle-icon--hide {
    display: none;
}

.md-auth-helper,
.auth-helper {
    min-height: 1.1rem;
    font-size: var(--auth-fs-muted);
    line-height: 1.35;
    color: var(--md-muted);
}

.md-auth-helper--error {
    color: var(--md-danger);
}

.md-auth-check,
.auth-check {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: var(--auth-fs-muted-xs);
    color: var(--md-muted);
    font-weight:600;
}

    .md-auth-check input[type="checkbox"],
    .auth-check input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: var(--md-accent);
    }

.md-auth-turnstile,
.auth-turnstile {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 65px;
    height: var(--md-turnstile-height, 65px);
}

    .md-auth-turnstile > div,
    .auth-turnstile > div {
        width: 100%;
        min-height: 65px;
        height: 100%;
    }

.auth-turnstile {
    margin-top: var(--sp-2);
}

.auth-turnstile--hidden {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.md-auth-button,
.auth-button {
    height: var(--auth-control-h);
    border-radius: var(--r-pill);
    border: 1px solid transparent;
    font-weight: 600;
    letter-spacing: 0.01em;
    background: linear-gradient(180deg, rgba(15, 31, 56, 0.98) 0%, rgba(7, 15, 31, 0.98) 100%);
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 34px rgba(7, 11, 23, 0.22);
    transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
    position: relative;
    cursor: pointer;
}

    .md-auth-button:hover,
    .auth-button:hover {
        transform: translateY(-1px);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 18px 44px rgba(7, 11, 23, 0.28);
    }

    .md-auth-button:active,
    .auth-button:active {
        transform: translateY(0);
    }

    .md-auth-button:focus-visible,
    .auth-button:focus-visible {
        box-shadow: 0 0 0 3px rgba(255, 224, 122, 0.24), 0 0 0 6px rgba(15, 31, 56, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 18px 44px rgba(7, 11, 23, 0.28);
    }

.md-auth-button--block,
.auth-button--block {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.md-auth-button.is-loading,
.auth-button.is-loading {
    cursor: wait;
    opacity: 0.92;
}

    .md-auth-button.is-loading::after,
    .auth-button.is-loading::after {
        content: "";
        position: absolute;
        right: 1rem;
        top: 50%;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        border: 2px solid rgba(255, 255, 255, 0.65);
        border-top-color: rgba(255, 255, 255, 0.2);
        transform: translateY(-50%);
        animation: mdAuthSpin 0.9s linear infinite;
    }

.md-auth-input[readonly],
.md-auth-input[disabled],
.auth-input[readonly],
.auth-input[disabled] {
    background: rgba(15, 31, 56, 0.04);
    border-color: rgba(15, 31, 56, 0.18);
    color: rgba(15, 23, 42, 0.6);
    cursor: not-allowed;
}

.md-auth-link,
.auth-link {
    color: var(--md-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.86rem;
}

    .md-auth-link:hover,
    .auth-link:hover {
        color: var(--md-primary-600);
        text-decoration: underline;
    }

.md-auth-secondary,
.auth-secondary {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: var(--auth-fs-muted);
    color: var(--md-muted);
}

.md-auth-alert,
.auth-alert {
    border-radius: var(--r-md);
    border: 1px solid rgba(217, 45, 32, 0.18);
    background: rgba(217, 45, 32, 0.06);
    color: var(--md-danger);
    padding: var(--sp-3);
    font-weight: 700;
    font-size: 0.82rem;
    line-height: 1.35rem;
}

.md-auth-alert--success {
    border-color: rgba(15, 81, 50, 0.35);
    background: rgba(16, 122, 61, 0.14);
    color: #0f5132;
}

.md-auth-alert ul,
.auth-alert ul {
    margin: 0.35rem 0 0;
    padding-left: 1.1rem;
}

.md-auth-alert li,
.auth-alert li {
    margin: 0.15rem 0;
}

.auth-alert--hidden {
    display: none;
}

.auth-alert--visible {
    display: block;
}

.auth-grid {
    display: grid;
    gap: var(--sp-3);
}

.auth-grid--split {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.auth-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
}

    .auth-actions .auth-button,
    .auth-actions .md-auth-button {
        min-width: 180px;
    }

.auth-actions--stack {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
}

    .auth-actions--stack .auth-link,
    .auth-actions--stack .md-auth-link {
        text-align: center;
    }

.auth-meta {
    display: grid;
    gap: 0.4rem;
    font-size: var(--auth-fs-body);
    color: var(--md-muted);
}

.auth-row {
    display: flex;
    gap: var(--sp-2);
    align-items: stretch;
}

    .auth-row .auth-input {
        flex: 1 1 auto;
    }

.md-left-content {
    position: relative;
    z-index: 1;
}

.md-orbit-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
    z-index: 0;
    opacity: 0.95;
}

.md-orbit-svg {
    width: var(--md-orbit-size);
    height: var(--md-orbit-size);
    overflow: visible;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.18));
}

.md-orbit-line {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 1.1;
}

.md-orbit-line--b {
    stroke: rgba(255, 255, 255, 0.08);
}

.md-orbit-line--c {
    stroke: rgba(255, 255, 255, 0.06);
}

.md-orbit-node {
    fill: rgba(255, 255, 255, 0.22);
}

.md-orbit-node--accent {
    fill: rgba(255, 205, 2, 0.7);
    filter: drop-shadow(0 0 10px rgba(255, 205, 2, 0.35));
}

.md-orbit-rotor {
    position: absolute;
    width: var(--md-orbit-size);
    height: var(--md-orbit-size);
    display: grid;
    place-items: center;
    will-change: transform;
}

.md-orbit-rotor--a {
    animation: mdOrbitSpin 54s linear infinite;
    transform: scaleX(1.15) scaleY(0.88);
}

.md-orbit-dot {
    position: absolute;
    left: 50%;
    top: calc(50% - (var(--md-orbit-size) * 0.44));
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #fff2b3 0%, #ffcd02 45%, #d6a400 100%);
    box-shadow: 0 0 18px rgba(255, 205, 2, 0.65), 0 0 44px rgba(255, 205, 2, 0.22);
    animation: mdOrbitPulse 1.9s ease-in-out infinite;
}

.md-orbit-center-mark {
    position: absolute;
    width: calc(var(--md-orbit-size) * 0.34);
    height: calc(var(--md-orbit-size) * 0.34);
    opacity: 0.08;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("/images/logo/meadify-logo-icon-white.svg");
    filter: saturate(0.9) contrast(1.05);
    mix-blend-mode: soft-light;
}

@keyframes authPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.06);
        opacity: 0.9;
    }
}

@keyframes authSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes mdAuthSpin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

@keyframes mdAuthCaret {
    0%, 50% {
        opacity: 0.2;
    }

    51%, 100% {
        opacity: 0.45;
    }
}

@keyframes mdAuthDotPulse {
    0% {
        transform: scale(1);
    }

    35% {
        transform: scale(1.18);
    }

    70% {
        transform: scale(0.98);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes authOrbit {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(120px, 160px);
    }

    100% {
        transform: translate(0, 0);
    }
}

@keyframes mdOrbitSpin {
    to {
        transform: rotate(360deg) scaleX(1.15) scaleY(0.88);
    }
}

@keyframes mdOrbitPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.22);
    }
}

@keyframes mdEnterpriseRingFlow {
    to {
        stroke-dashoffset: -120;
    }
}

@media (max-width: 64rem) {
    .auth-main {
        padding: 0;
    }

    .auth-card {
        width: 100%;
        min-height: 100vh;
        border-radius: 0;
        grid-template-columns: 1fr;
    }

    .auth-panel--brand {
        display: none;
    }

    .auth-panel--content {
        padding-top: clamp(1.25rem, 4vw, 2rem);
        padding-inline: clamp(1rem, 4vw, 2rem);
        padding-bottom: calc(clamp(1.75rem, 4vw, 2.5rem) + env(safe-area-inset-bottom));
    }

    .md-auth {
        padding: 0;
    }
}

@supports (min-height: 100dvh) {
    @media (max-width: 64rem) {
        .auth-card {
            min-height: 100dvh;
        }
    }
}

@media (max-width: 30rem) {
    .auth-skip-link {
        left: 0.75rem;
        top: 0.75rem;
    }

    .auth-actions .auth-button,
    .auth-actions .md-auth-button {
        min-width: 0;
        width: 100%;
    }

    .auth-actions {
        justify-content: stretch;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .md-orbit-rotor--a,
    .md-orbit-dot,
    .auth-orbit-ring,
    .auth-orbit-dot,
    .md-enterprise-orbit__ring,
    .md-enterprise-orbit__track,
    .md-enterprise-orbit__sat,
    .auth-glow {
        animation: none !important;
    }
}
