:root {
    --rp-navy-900: #0f172a;
    --rp-navy-800: #14213d;
    --rp-navy-700: #1f335c;
    --rp-slate-500: #64748b;
    --rp-slate-200: #e2e8f0;
    --rp-surface: rgba(255, 255, 255, 0.84);
    --rp-surface-strong: #ffffff;
    --rp-accent: #ef2b2a;
    --rp-accent-soft: rgba(239, 43, 42, 0.1);
    --rp-blue-soft: rgba(59, 130, 246, 0.1);
}

body.auth-landing-body {
    background:
            radial-gradient(circle at top left, rgba(239, 43, 42, 0.08), transparent 24%),
            radial-gradient(circle at top right, rgba(15, 23, 42, 0.06), transparent 24%),
            linear-gradient(180deg, #f6f8fb 0%, #edf2f7 100%);
    color: var(--rp-navy-900);
}

.auth-landing-shell {
    position: relative;
    overflow: hidden;
}

.auth-landing-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.05)),
            radial-gradient(circle at 18% 18%, rgba(239, 43, 42, 0.04), transparent 18%);
    pointer-events: none;
}

.auth-panel {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.07);
    backdrop-filter: blur(8px);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease;
}

.auth-card-title {
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.auth-chip {
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.92);
    color: #334155;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.auth-feature-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease;
}

.auth-section-card {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.38s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease;
}

.auth-input {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: #ffffff;
    color: var(--rp-navy-900);
    padding: 0.875rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.auth-input::placeholder {
    color: #94a3b8;
}

.auth-input:focus {
    outline: none;
    border-color: rgba(239, 43, 42, 0.36);
    box-shadow: 0 0 0 4px rgba(239, 43, 42, 0.06);
}

.auth-btn-primary {
    background: #ef2b2a;
    color: #fff;
    box-shadow: 0 10px 22px rgba(239, 43, 42, 0.2);
}

.auth-btn-secondary {
    background: #111827;
    color: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.auth-btn-neutral {
    background: rgba(255, 255, 255, 0.98);
    color: var(--rp-navy-900);
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.auth-btn-primary,
.auth-btn-secondary,
.auth-btn-neutral {
    border-radius: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease, background-color 0.2s ease;
}

.auth-btn-primary:hover,
.auth-btn-secondary:hover,
.auth-btn-neutral:hover {
    transform: translateY(-2px);
}

.auth-btn-primary:hover {
    background: #dd2322;
}

.auth-btn-secondary:hover {
    background: #0f172a;
}

.auth-kpi-card {
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-notice-link {
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.auth-notice-link:hover {
    background: rgba(248, 250, 252, 0.98);
    border-color: rgba(15, 23, 42, 0.16);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.auth-settlement-board {
    background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 252, 0.96)),
            radial-gradient(circle at top right, rgba(239, 43, 42, 0.08), transparent 24%);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.auth-settlement-week-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.75rem 1rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.auth-settlement-week-pill {
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.95);
    color: #475569;
}

.auth-settlement-list-card {
    border-radius: 1.35rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.98);
    padding: 1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.auth-settlement-ticker {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.8), rgba(255, 255, 255, 0.98));
    min-height: 0;
    height: auto;
    padding: 0.35rem;
    transition: height 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-settlement-ticker::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 4.5rem;
    background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.92));
    pointer-events: none;
}

.auth-settlement-ticker::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4.8rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0));
    pointer-events: none;
    z-index: 1;
}

.auth-settlement-ticker-track {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transform: translateY(0);
    will-change: transform;
}

.auth-settlement-ticker-track.is-scrolling {
    transition: transform 0.88s cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-settlement-ticker-item {
    border-radius: 1.25rem;
    border: 1px solid rgba(226, 232, 240, 0.88);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.42s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.42s ease, background-color 0.42s ease;
}

.auth-settlement-ticker-item-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1rem;
    height: 100%;
    transform: scale(1);
    transform-origin: center center;
    transition: transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-settlement-ticker-item.is-focus {
    border-color: rgba(239, 43, 42, 0.24);
    background: linear-gradient(180deg, rgba(255, 246, 246, 0.98), rgba(255, 255, 255, 0.98));
    box-shadow: 0 14px 26px rgba(239, 43, 42, 0.08);
}

.auth-settlement-ticker-item.is-focus .auth-settlement-ticker-item-inner {
    transform: scale(1.018);
}

.auth-settlement-rank {
    width: 2.1rem;
    height: 2.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: #0f172a;
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 900;
}

.auth-settlement-ticker-amount {
    font-size: 1.02rem;
    font-weight: 900;
    color: #ef2b2a;
    letter-spacing: -0.03em;
}

.auth-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(148, 163, 184, 0), rgba(148, 163, 184, 0.55), rgba(148, 163, 184, 0));
}

.auth-stat-highlight {
    background: linear-gradient(135deg, rgba(239, 43, 42, 0.05), rgba(15, 23, 42, 0.04));
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.auth-surface-dark {
    background: linear-gradient(180deg, #111827 0%, #1f2937 100%);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.auth-surface-dark .muted {
    color: rgba(226, 232, 240, 0.78);
}

.auth-header-copy {
    letter-spacing: -0.02em;
}

.auth-hero-title {
    max-width: none;
    width: 100%;
}

.auth-hero-copy {
    max-width: none;
    width: 100%;
}

.auth-title-keep {
    word-break: keep-all;
    overflow-wrap: normal;
}

.auth-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.auth-benefit-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
}

.auth-benefit-amount,
.auth-benefit-meta {
    word-break: keep-all;
}

.auth-reveal {
    opacity: 0;
    transform: translateY(28px);
    animation: auth-fade-up 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--reveal-delay, 0s);
}

.auth-reveal-soft {
    opacity: 0;
    transform: translateY(16px);
    animation: auth-fade-up-soft 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--reveal-delay, 0s);
}

.auth-float-button {
    width: 3.5rem;
    height: 3.5rem;
    min-width: 3.5rem;
    position: relative;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: auth-float-bob 4.6s ease-in-out infinite;
    border-radius: 9999px;
    transition: width 0.48s cubic-bezier(0.22, 1, 0.36, 1), min-width 0.48s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.24s ease, box-shadow 0.32s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: center center;
}

.auth-float-button::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(239, 43, 42, 0.18) 0%, rgba(239, 43, 42, 0) 72%);
    opacity: 0;
    animation: auth-float-glow 4.6s ease-in-out infinite;
    z-index: -1;
}

.auth-float-button-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 3.5rem;
    height: 3.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    transition: left 0.42s cubic-bezier(0.22, 1, 0.36, 1), transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-float-button-icon .material-icons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transform: translateY(1.5px);
}

.auth-float-button-text-wrap {
    display: inline-flex;
    align-items: center;
    margin-left: 3rem;
    max-width: 0;
    overflow: hidden;
    transition: max-width 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-float-button-label {
    opacity: 0;
    white-space: nowrap;
    transform: translateX(-6px);
    transition: opacity 0.22s ease, transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-float-button:hover,
.auth-float-button:focus-visible {
    width: 9.5rem;
    min-width: 9.5rem;
    box-shadow: 0 18px 34px rgba(239, 43, 42, 0.24);
    transform: translateY(-2px) scale(1.015);
}

.auth-float-button:hover .auth-float-button-text-wrap,
.auth-float-button:focus-visible .auth-float-button-text-wrap {
    max-width: 5.5rem;
}

.auth-float-button:hover .auth-float-button-icon,
.auth-float-button:focus-visible .auth-float-button-icon {
    left: 1.75rem;
    transform: translate(0, -50%);
}

.auth-float-button:hover .auth-float-button-label,
.auth-float-button:focus-visible .auth-float-button-label {
    opacity: 1;
    transform: translateX(0);
}

.auth-modal-backdrop {
    opacity: 0;
    transition: opacity 0.28s ease;
}

.auth-modal-backdrop.is-open {
    opacity: 1;
}

.auth-modal-sheet {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
}

.auth-modal-backdrop.is-open .auth-modal-sheet {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.auth-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.08);
}

.auth-feature-card:hover,
.auth-section-card:hover,
.auth-kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.07);
}

.auth-input:focus {
    transform: translateY(-1px);
}

@keyframes auth-fade-up {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes auth-fade-up-soft {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes auth-float-bob {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes auth-float-glow {
    0%, 100% {
        opacity: 0.2;
        transform: scale(0.96);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.04);
    }
}

@media (max-width: 1023px) {
    .auth-panel {
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
        backdrop-filter: none;
    }

    .auth-panel:hover,
    .auth-feature-card:hover,
    .auth-section-card:hover,
    .auth-kpi-card:hover {
        transform: none;
        box-shadow: none;
    }

    .auth-card-title {
        letter-spacing: -0.035em;
    }

    .auth-feature-card,
    .auth-section-card,
    .auth-kpi-card {
        box-shadow: none;
    }

    .auth-settlement-board,
    .auth-settlement-list-card {
        box-shadow: none;
    }

    .auth-hero-title {
        max-width: none;
        font-size: 2rem;
        line-height: 1.22;
    }

    .auth-hero-copy {
        font-size: 0.95rem;
        line-height: 1.78;
    }

    .auth-settlement-ticker {
        min-height: 18rem;
    }
}

@media (max-width: 767px) {
    body.auth-landing-body {
        background: linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
    }

    .auth-landing-shell::before {
        display: none;
    }

    .auth-chip {
        font-size: 0.74rem;
    }

    .auth-input {
        border-radius: 14px;
        padding: 0.82rem 0.92rem;
        font-size: 0.94rem;
    }

    .auth-btn-primary,
    .auth-btn-secondary,
    .auth-btn-neutral {
        border-radius: 14px;
        font-size: 0.94rem;
    }

    .auth-header-copy {
        font-size: 0.7rem;
        letter-spacing: 0.18em;
    }

    .auth-hero-title {
        font-size: 1.8rem;
        line-height: 1.24;
    }

    .auth-hero-copy {
        font-size: 0.92rem;
        line-height: 1.72;
    }

    .auth-chip-row {
        gap: 0.625rem;
    }

    .auth-benefit-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-benefit-amount {
        font-size: 2rem;
        line-height: 1.08;
    }

    .auth-benefit-meta {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .auth-settlement-board {
        padding: 1.15rem;
    }

    .auth-settlement-week-pill {
        font-size: 0.72rem;
        padding: 0.65rem 0.82rem;
    }

    .auth-settlement-ticker {
        min-height: 15rem;
    }

    .auth-settlement-ticker-item {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .auth-settlement-ticker-amount {
        font-size: 0.96rem;
    }

    .auth-float-button {
        width: 3.5rem;
        height: 3.5rem;
        min-width: 3.5rem;
        justify-content: center;
        padding: 0;
    }

    .auth-float-button-icon {
        position: absolute;
        width: 3.5rem;
        height: 3.5rem;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .auth-float-button-text-wrap {
        margin-left: 0;
        max-width: 0;
    }

    .auth-float-button-label {
        opacity: 0;
        transform: translateX(-6px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-reveal,
    .auth-reveal-soft,
    .auth-float-button,
    .auth-float-button::before,
    .auth-settlement-ticker-track.is-scrolling {
        animation: none !important;
    }

    .auth-panel,
    .auth-feature-card,
    .auth-section-card,
    .auth-kpi-card,
    .auth-btn-primary,
    .auth-btn-secondary,
    .auth-btn-neutral,
    .auth-input,
    .auth-notice-link,
    .auth-modal-backdrop,
    .auth-modal-sheet,
    .auth-settlement-ticker-item,
    .auth-settlement-ticker-track {
        transition: none !important;
    }
}
