/* Login / auth marketing rail — v2 theme, code-built (no background image) */
:root {
    --lmp-primary: #0369a1;
    --lmp-primary-hover: #0284c7;
    --lmp-deep: #0c4a6e;
    --lmp-sky: #0ea5e9;
    --lmp-surface: #ffffff;
    --lmp-text-on-dark: #f8fafc;
    --lmp-text-muted-on-dark: rgba(248, 250, 252, 0.78);
    --lmp-card-shadow: 0 18px 48px rgba(2, 44, 74, 0.28), 0 4px 14px rgba(15, 23, 42, 0.12);
    --lmp-radius: 12px;
    --lmp-font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.image_section {
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

.login-marketing-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    padding: 32px 28px 22px;
    overflow: hidden;
    color: var(--lmp-text-on-dark);
    font-family: var(--lmp-font);
    background:
        radial-gradient(ellipse 90% 70% at 15% 0%, rgba(14, 165, 233, 0.45) 0%, transparent 55%),
        radial-gradient(ellipse 80% 60% at 100% 100%, rgba(3, 105, 161, 0.35) 0%, transparent 50%),
        linear-gradient(155deg, var(--lmp-deep) 0%, var(--lmp-primary) 48%, var(--lmp-sky) 100%);
}

.login-marketing-panel__grid {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.95) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.95) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
}

.login-marketing-panel__orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(1px);
}

.login-marketing-panel__orb--1 {
    width: 340px;
    height: 340px;
    top: -90px;
    right: -100px;
    background: rgba(255, 255, 255, 0.09);
    animation: lmp-orb-drift 14s ease-in-out infinite;
}

.login-marketing-panel__orb--2 {
    width: 220px;
    height: 220px;
    bottom: 12%;
    left: -70px;
    background: rgba(255, 255, 255, 0.06);
    animation: lmp-orb-drift 18s ease-in-out infinite reverse;
}

.login-marketing-panel__wave {
    position: absolute;
    left: -10%;
    right: -10%;
    height: 180px;
    opacity: 0.14;
    pointer-events: none;
}

.login-marketing-panel__wave--top {
    top: 22%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,64 C200,20 400,100 600,56 C800,12 1000,88 1200,48 L1200,0 L0,0 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    animation: lmp-wave-shift 22s linear infinite;
}

.login-marketing-panel__wave--bottom {
    bottom: 18%;
    opacity: 0.1;
    transform: scaleY(-1);
    animation: lmp-wave-shift 28s linear infinite reverse;
}

.login-marketing-panel__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
    min-height: 0;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
    overflow: hidden;
}

.login-marketing-panel__brand {
    text-align: center;
    margin-bottom: 0;
    flex-shrink: 0;
    position: relative;
    z-index: 3;
    animation: lmp-fade-up 0.7s ease both;
}

.login-marketing-panel__logo {
    margin: 0 0 5px;
    font-size: clamp(1.5rem, 2.2vw, 1.85rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.15;
}

.login-marketing-panel__powered {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lmp-text-muted-on-dark);
}

.login-marketing-panel__powered strong {
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #fff;
}

.login-marketing-panel__cards {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 2;
    height: clamp(375px, 45vh, 425px);
    margin: 0 auto;
    width: 100%;
    max-width: 500px;
}

.login-marketing-panel__card-stack {
    position: absolute;
    min-width: 0;
}

.login-marketing-panel__card-stack--price {
    top: 0;
    left: 0;
    width: 54%;
    z-index: 2;
}

.login-marketing-panel__card-stack--cost {
    top: 78px;
    right: 0;
    width: 58%;
    z-index: 3;
}

.login-marketing-panel__card {
    width: 100%;
    background: var(--lmp-surface);
    border-radius: var(--lmp-radius);
    box-shadow: var(--lmp-card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.65);
    overflow: hidden;
    animation: lmp-card-float 6s ease-in-out infinite;
}

.login-marketing-panel__card-stack--price .login-marketing-panel__card {
    animation-delay: 0s;
}

.login-marketing-panel__card-stack--cost .login-marketing-panel__card {
    animation-delay: -2.5s;
}

.login-marketing-panel__card-head {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    padding: 8px 10px 7px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    font-size: 8px;
    color: #6b7280;
}

.login-marketing-panel__pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e5e7eb;
    white-space: nowrap;
}

.login-marketing-panel__filter-btn {
    margin-left: auto;
    padding: 3px 9px;
    border: none;
    border-radius: 6px;
    background: var(--lmp-primary);
    color: #fff;
    font-size: 8px;
    font-weight: 600;
    cursor: default;
}

.login-marketing-panel__chart-wrap {
    padding: 8px 10px 10px;
}

.login-marketing-panel__card-stack--price .login-marketing-panel__chart-wrap {
    padding: 8px 10px 12px;
    min-height: 0;
}

.login-marketing-panel__chart-label {
    display: block;
    position: relative;
    z-index: 6;
    margin-top: 10px;
    padding-bottom: 2px;
    text-align: center;
    font-size: 0.92rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.login-marketing-panel__chart-svg {
    display: block;
    width: 100%;
    height: auto;
    max-height: 150px;
    aspect-ratio: 248 / 160;
}

.login-marketing-panel__card-stack--price .login-marketing-panel__chart-svg {
    max-height: 178px;
    aspect-ratio: 248 / 180;
}

.login-marketing-panel__chart-line {
    fill: none;
    stroke: #ea580c;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 560;
    stroke-dashoffset: 560;
    animation: lmp-draw-line 2.4s ease forwards 0.5s;
}

.login-marketing-panel__chart-area {
    fill: url(#lmpChartGradient);
    opacity: 0;
    animation: lmp-fade-in 1s ease forwards 1.8s;
}

.login-marketing-panel__table-wrap {
    padding: 10px 12px 12px;
    font-size: 9px;
    color: #374151;
    line-height: 1.4;
}

.login-marketing-panel__table-title {
    margin: 0 0 8px;
    font-size: 9px;
    font-weight: 600;
    color: #111827;
    line-height: 1.35;
}

.login-marketing-panel__cost-bars {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.login-marketing-panel__cost-bar-row {
    display: grid;
    grid-template-columns: 78px 1fr 38px;
    align-items: center;
    gap: 6px;
    font-size: 8px;
    color: #6b7280;
}

.login-marketing-panel__cost-bar-track {
    height: 6px;
    border-radius: 999px;
    background: #f1f5f9;
    overflow: hidden;
}

.login-marketing-panel__cost-bar-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #0369a1 0%, #0ea5e9 100%);
}

.login-marketing-panel__cost-bar-pct {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: #0369a1;
}

.login-marketing-panel__table {
    width: 100%;
    border-collapse: collapse;
}

.login-marketing-panel__table th,
.login-marketing-panel__table td {
    padding: 5px 6px;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
    font-size: 9px;
}

.login-marketing-panel__table th {
    font-weight: 600;
    color: #6b7280;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.login-marketing-panel__table td:last-child,
.login-marketing-panel__table th:last-child {
    text-align: right;
}

.login-marketing-panel__table td:nth-child(2) {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.login-marketing-panel__table tr:last-child td {
    border-bottom: none;
    font-weight: 700;
    color: #0369a1;
    background: #f0f9ff;
}

.login-marketing-panel__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: center;
    margin-top: auto;
    margin-bottom: 14px;
    flex-shrink: 0;
    position: relative;
    z-index: 3;
    animation: lmp-fade-up 0.8s ease 0.25s both;
}

.login-marketing-panel__stat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.login-marketing-panel__stat-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5);
    animation: lmp-pulse-dot 2.4s ease infinite;
}

.login-marketing-panel__copy {
    margin-top: 0;
    text-align: center;
    flex-shrink: 0;
    position: relative;
    z-index: 3;
    animation: lmp-fade-up 0.9s ease 0.4s both;
}

.login-marketing-panel__headline {
    margin: 0 0 8px;
    font-size: clamp(0.92rem, 1.35vw, 1.15rem);
    font-weight: 600;
    line-height: 1.32;
    letter-spacing: -0.01em;
}

.login-marketing-panel__headline strong {
    font-weight: 700;
}

.login-marketing-panel__subline {
    margin: 0;
    font-size: 0.76rem;
    line-height: 1.4;
    color: var(--lmp-text-muted-on-dark);
}

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

@keyframes lmp-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes lmp-card-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes lmp-draw-line {
    to { stroke-dashoffset: 0; }
}

@keyframes lmp-orb-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-12px, 16px) scale(1.04); }
}

@keyframes lmp-wave-shift {
    0% { transform: translateX(0); }
    100% { transform: translateX(-4%); }
}

@keyframes lmp-pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.45); }
    50% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .login-marketing-panel__card,
    .login-marketing-panel__orb--1,
    .login-marketing-panel__orb--2,
    .login-marketing-panel__wave--top,
    .login-marketing-panel__wave--bottom,
    .login-marketing-panel__stat-dot {
        animation: none;
    }

    .login-marketing-panel__chart-line {
        stroke-dashoffset: 0;
        animation: none;
    }

    .login-marketing-panel__chart-area {
        opacity: 1;
        animation: none;
    }
}

@media screen and (min-width: 992px) {
    body:has(.login-marketing-panel) {
        overflow: hidden;
    }

    .login_main:has(.login-marketing-panel) {
        height: 100vh;
        max-height: 100vh;
        overflow: hidden;
    }

    .form_section {
        max-height: 100vh;
        overflow-y: auto;
    }
}

@media screen and (max-height: 820px) {
    .login-marketing-panel {
        padding: 22px 20px 16px;
    }

    .login-marketing-panel__brand {
        margin-bottom: 10px;
    }

    .login-marketing-panel__cards {
        height: clamp(345px, 43vh, 385px);
    }

    .login-marketing-panel__card-stack--price .login-marketing-panel__chart-svg {
        max-height: 158px;
    }

    .login-marketing-panel__stats {
        margin-bottom: 10px;
    }
}

@media screen and (max-width: 991px) {
    .login-marketing-panel {
        display: none;
    }
}
