/* ==========================================================================
   White-label login templates — shared design system
   ========================================================================== */

.wl-login {
    --wl-font: 'DM Sans', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --wl-text: #1e293b;
    --wl-text-muted: #64748b;
    --wl-border: #e2e8f0;
    --wl-surface: #ffffff;
    --wl-radius: 1rem;
    --wl-radius-lg: 1.25rem;
    --wl-shadow: 0 24px 64px rgba(15, 23, 42, 0.08);
    --wl-shadow-lg: 0 32px 80px rgba(15, 23, 42, 0.12);
    min-height: 100vh;
    font-family: var(--wl-font);
    color: var(--wl-text);
}

.wl-login * {
    font-family: inherit;
}

/* Brand logo */
.wl-login-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    margin-bottom: 0;
}

.wl-login-brand img {
    max-height: 44px;
    width: auto;
    object-fit: contain;
}

.wl-login-brand .brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--wl-text);
    letter-spacing: -0.02em;
}

.wl-login-brand--light .brand-text {
    color: #fff;
}

.wl-login-brand--centered {
    justify-content: center;
}

.wl-login-brand--mobile {
    margin-bottom: 1.5rem;
}

/* Cards */
.wl-login-card {
    background: var(--wl-surface);
    border-radius: var(--wl-radius-lg);
    box-shadow: var(--wl-shadow);
    border: 1px solid rgba(226, 232, 240, 0.9);
    padding: 2rem;
    width: 100%;
    max-width: 440px;
}

.wl-login-card--glass {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: var(--wl-shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
}

.wl-login-card--minimal {
    max-width: 420px;
    padding: 2.25rem 2rem 2rem;
    position: relative;
    z-index: 1;
    overflow: hidden;
    animation: wl-minimal-card-enter 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Form header */
.wl-login-form__eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--wl-primary, var(--reseller-primary, #7367f0));
    margin-bottom: 0.5rem;
}

.wl-login-form__title {
    font-size: 1.625rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin: 0 0 0.5rem;
    color: var(--wl-text);
}

.wl-login-form__subtitle {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--wl-text-muted);
    margin: 0 0 1.75rem;
}

.wl-login-form__header--gradient .wl-login-form__title,
.wl-login-form__header--minimal .wl-login-form__title {
    font-size: 1.5rem;
}

.wl-login-form__header--minimal {
    text-align: center;
}

.wl-login-form__header--platform .wl-login-form__title {
    font-size: 1.75rem;
    letter-spacing: -0.035em;
    margin-bottom: 1.75rem;
}

.wl-login-form--platform .wl-login-field {
    animation: wl-platform-field-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.wl-login-form--platform .wl-login-submit {
    animation: wl-platform-field-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

.wl-login-form__header--minimal .wl-login-form__eyebrow {
    display: block;
}

/* Form fields */
.wl-login-field {
    margin-bottom: 1.125rem;
}

.wl-login-field--inline {
    margin-bottom: 1.25rem;
}

.wl-login-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--wl-text);
    margin-bottom: 0.4rem;
}

.wl-login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.wl-login-input-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    display: flex;
    align-items: center;
    z-index: 2;
}

.wl-login-input-icon svg {
    width: 18px;
    height: 18px;
}

.wl-login-input {
    height: 3rem !important;
    padding-left: 2.75rem !important;
    padding-right: 2.75rem !important;
    border-radius: 0.75rem !important;
    border: 1.5px solid var(--wl-border) !important;
    background: #f8fafc !important;
    font-size: 0.9375rem !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.wl-login-input:focus {
    border-color: var(--wl-primary, var(--reseller-primary, #7367f0)) !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(var(--reseller-primary-rgb, 115, 103, 240), 0.12) !important;
}

.wl-login-input-toggle {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #94a3b8;
    padding: 0.35rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: color 0.15s ease;
    z-index: 2;
}

.wl-login-input-toggle:hover {
    color: var(--wl-primary, var(--reseller-primary, #7367f0));
}

.wl-login-input-toggle svg {
    width: 18px;
    height: 18px;
}

.wl-login-link {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--wl-primary, var(--reseller-primary, #7367f0));
    text-decoration: none;
}

.wl-login-link:hover {
    text-decoration: underline;
}

.wl-login-link--strong {
    font-weight: 600;
}

.wl-login-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--wl-text-muted);
    cursor: pointer;
    margin: 0;
}

.wl-login-checkbox .form-check-input {
    margin: 0;
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
}

.wl-login-submit {
    height: 3rem;
    border-radius: 0.75rem !important;
    font-weight: 600 !important;
    font-size: 0.9375rem !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none !important;
    box-shadow: 0 8px 24px rgba(var(--reseller-primary-rgb, 115, 103, 240), 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wl-login-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(var(--reseller-primary-rgb, 115, 103, 240), 0.34);
}

.wl-login-submit svg {
    width: 18px;
    height: 18px;
}

.wl-login-error {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin-top: 0.5rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.625rem;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 0.8125rem;
}

.wl-login-error svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.wl-login-footer-text {
    text-align: center;
    margin: 1.25rem 0 0;
    font-size: 0.875rem;
    color: var(--wl-text-muted);
}

.wl-login-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0 1rem;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.wl-login-divider::before,
.wl-login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--wl-border);
}

.wl-login-social {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.wl-login-social-btn {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    border: 1.5px solid var(--wl-border);
    background: #fff;
    color: var(--wl-text-muted);
    transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.wl-login-social-btn:hover {
    border-color: var(--wl-primary, var(--reseller-primary, #7367f0));
    color: var(--wl-primary, var(--reseller-primary, #7367f0));
    transform: translateY(-2px);
}

.wl-login-social-btn svg {
    width: 18px;
    height: 18px;
}

.wl-login-demo-pills {
    display: flex;
    gap: 0.5rem;
}

.wl-login-demo-pill {
    border: 1px dashed var(--wl-border);
    background: #f8fafc;
    color: var(--wl-text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    cursor: pointer;
}

.wl-login-demo-pill:hover {
    border-color: var(--wl-primary, var(--reseller-primary, #7367f0));
    color: var(--wl-primary, var(--reseller-primary, #7367f0));
}

.wl-login-pill {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(var(--reseller-primary-rgb, 115, 103, 240), 0.12);
    color: var(--wl-primary, var(--reseller-primary, #7367f0));
    margin-bottom: 1rem;
}

.wl-login-pill--light {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.wl-login-feature-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wl-login-feature-list li {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.92);
}

.wl-login-feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wl-login-feature-icon svg {
    width: 18px;
    height: 18px;
    color: #fff;
}

.wl-login-stat-row {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.wl-login-stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.wl-login-stat strong {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.wl-login-stat span {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.75);
}

/* ==========================================================================
   Classic split template
   ========================================================================== */

.wl-login--classic .wl-login-classic__grid {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100vh;
}

@media (min-width: 992px) {
    .wl-login--classic .wl-login-classic__grid {
        grid-template-columns: 0.92fr 1.08fr;
    }

    .wl-login-classic__panel {
        order: 1;
    }

    .wl-login-classic__hero {
        order: 2;
    }
}

.wl-login-classic__hero {
    position: relative;
    padding: 2.5rem 3rem;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.wl-login-classic__hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(145deg, var(--wl-primary, #7367f0) 0%, color-mix(in srgb, var(--wl-primary, #7367f0) 70%, #000) 45%, color-mix(in srgb, var(--wl-secondary, #28c76f) 80%, #000) 100%);
    background-size: 200% 200%;
    animation: wl-classic-gradient-shift 14s ease infinite;
    z-index: 0;
}

.wl-login-classic__hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.22), transparent 42%),
        radial-gradient(circle at 85% 75%, rgba(255, 255, 255, 0.12), transparent 38%);
}

.wl-login-classic__hero-bg::after {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    right: -180px;
    bottom: -200px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: wl-classic-orb-drift 18s ease-in-out infinite;
}

/* Classic hero — animated layer */
.wl-login-classic__hero-anim {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.wl-login-classic__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.5;
    animation: wl-classic-orb-drift 10s ease-in-out infinite;
}

.wl-login-classic__orb--1 {
    width: 280px;
    height: 280px;
    top: 8%;
    right: 12%;
    background: rgba(255, 255, 255, 0.28);
}

.wl-login-classic__orb--2 {
    width: 200px;
    height: 200px;
    bottom: 18%;
    left: 8%;
    background: rgba(255, 255, 255, 0.16);
    animation-duration: 13s;
    animation-delay: -3s;
}

.wl-login-classic__orb--3 {
    width: 140px;
    height: 140px;
    top: 48%;
    left: 42%;
    background: rgba(255, 255, 255, 0.12);
    animation-duration: 11s;
    animation-delay: -6s;
}

.wl-login-classic__ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    margin: -60px 0 0 -60px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    opacity: 0;
    animation: wl-classic-pulse-ring 4s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}

.wl-login-classic__ring--2 {
    animation-delay: 1.3s;
}

.wl-login-classic__ring--3 {
    animation-delay: 2.6s;
}

.wl-login-classic__bubbles {
    position: absolute;
    inset: 0;
}

.wl-login-classic__bubble {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    animation: wl-classic-bubble-float 7s ease-in-out infinite;
}

.wl-login-classic__bubble svg {
    width: 20px;
    height: 20px;
}

.wl-login-classic__bubble--1 {
    width: 52px;
    height: 52px;
    top: 22%;
    right: 22%;
    animation-delay: 0s;
}

.wl-login-classic__bubble--2 {
    width: 44px;
    height: 44px;
    bottom: 32%;
    right: 30%;
    animation-delay: -2.2s;
    animation-duration: 8.5s;
}

.wl-login-classic__bubble--3 {
    width: 40px;
    height: 40px;
    top: 38%;
    left: 18%;
    animation-delay: -4.5s;
    animation-duration: 9s;
}

@keyframes wl-classic-gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes wl-classic-orb-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(14px, -20px) scale(1.04); }
    66% { transform: translate(-10px, 12px) scale(0.97); }
}

@keyframes wl-classic-pulse-ring {
    0% {
        transform: scale(0.6);
        opacity: 0.7;
    }
    70%, 100% {
        transform: scale(2.8);
        opacity: 0;
    }
}

@keyframes wl-classic-bubble-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(3deg); }
}

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

.wl-login-classic__hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: calc(100vh - 5rem);
}

.wl-login-classic__hero .wl-login-brand img {
    filter: brightness(0) invert(1);
}

.wl-login-classic__hero .wl-login-brand .brand-text {
    color: #fff;
}

.wl-login-classic__headline {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #fff;
    margin: 0 0 1rem;
    max-width: 18ch;
    animation: wl-classic-fade-up 0.7s ease both;
    animation-delay: 0.1s;
}

.wl-login-classic__lead {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
    max-width: 36ch;
    animation: wl-classic-fade-up 0.7s ease both;
    animation-delay: 0.2s;
}

.wl-login-classic__hero-main .wl-login-pill {
    animation: wl-classic-fade-up 0.6s ease both;
}

.wl-login-feature-list li {
    animation: wl-classic-fade-up 0.6s ease both;
}

.wl-login-classic__hero .wl-login-feature-list li:nth-child(1) { animation-delay: 0.35s; }
.wl-login-classic__hero .wl-login-feature-list li:nth-child(2) { animation-delay: 0.45s; }
.wl-login-classic__hero .wl-login-feature-list li:nth-child(3) { animation-delay: 0.55s; }

@media (prefers-reduced-motion: reduce) {
    .wl-login-classic__hero-bg,
    .wl-login-classic__hero-bg::after,
    .wl-login-classic__orb,
    .wl-login-classic__ring,
    .wl-login-classic__bubble,
    .wl-login-classic__headline,
    .wl-login-classic__lead,
    .wl-login-classic__hero-main .wl-login-pill,
    .wl-login-feature-list li {
        animation: none !important;
    }
}

.wl-login-classic__footnote {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

.wl-login-classic__panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 40%);
}

@media (min-width: 992px) {
    .wl-login-classic__panel {
        padding: 3rem 2.5rem;
    }
}

/* ==========================================================================
   Gradient hero template
   ========================================================================== */

.wl-login--gradient {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        var(--wl-primary, var(--reseller-primary, #7367f0)) 0%,
        color-mix(in srgb, var(--wl-primary, #7367f0) 55%, var(--wl-secondary, #28c76f)) 50%,
        var(--wl-secondary, var(--reseller-secondary, #28c76f)) 100%
    );
}

.wl-login-gradient__backdrop {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.wl-login-gradient__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.45;
    animation: wl-login-float 12s ease-in-out infinite;
}

.wl-login-gradient__orb--1 {
    width: 380px;
    height: 380px;
    top: -80px;
    right: 10%;
    background: rgba(255, 255, 255, 0.35);
}

.wl-login-gradient__orb--2 {
    width: 300px;
    height: 300px;
    bottom: 10%;
    left: -60px;
    background: rgba(255, 255, 255, 0.2);
    animation-delay: -4s;
}

.wl-login-gradient__orb--3 {
    width: 200px;
    height: 200px;
    top: 40%;
    left: 35%;
    background: rgba(255, 255, 255, 0.15);
    animation-delay: -8s;
}

.wl-login-gradient__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

@keyframes wl-login-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(12px, -18px) scale(1.05); }
}

.wl-login-gradient__layout {
    position: relative;
    z-index: 1;
}

.wl-login-gradient__hero {
    flex-direction: column;
    justify-content: center;
    padding: 3rem 3.5rem;
    position: relative;
}

.wl-login-gradient__hero .wl-login-brand {
    position: absolute;
    top: 2rem;
    left: 3.5rem;
}

.wl-login-gradient__hero .wl-login-brand img {
    filter: brightness(0) invert(1);
}

.wl-login-gradient__hero-copy h1 {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 1rem;
    max-width: 14ch;
}

.wl-login-gradient__hero-copy p {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    max-width: 34ch;
}

.wl-login--gradient .wl-login-brand--mobile img {
    filter: brightness(0) invert(1);
}

.wl-login--gradient .wl-login-brand--mobile .brand-text {
    color: #fff;
}

/* ==========================================================================
   Minimal centered template
   ========================================================================== */

.wl-login--minimal {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: #f1f5f9;
}

.wl-login-minimal__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 15%, rgba(var(--reseller-primary-rgb, 115, 103, 240), 0.09), transparent 40%),
        radial-gradient(circle at 80% 85%, rgba(var(--reseller-secondary-rgb, 40, 199, 111), 0.08), transparent 42%),
        linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    background-size: 120% 120%;
    animation: wl-minimal-backdrop-shift 20s ease infinite;
}

.wl-login-minimal__backdrop::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#cbd5e1 0.8px, transparent 0.8px);
    background-size: 24px 24px;
    opacity: 0.35;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
    animation: wl-minimal-grid-drift 30s linear infinite;
}

/* Minimal — ambient animation layer */
.wl-login-minimal__anim {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.wl-login-minimal__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(48px);
    opacity: 0.55;
    animation: wl-minimal-orb-drift 16s ease-in-out infinite;
}

.wl-login-minimal__orb--1 {
    width: 320px;
    height: 320px;
    top: -8%;
    left: -6%;
    background: rgba(var(--reseller-primary-rgb, 115, 103, 240), 0.22);
}

.wl-login-minimal__orb--2 {
    width: 260px;
    height: 260px;
    bottom: -6%;
    right: -4%;
    background: rgba(var(--reseller-secondary-rgb, 40, 199, 111), 0.18);
    animation-duration: 19s;
    animation-delay: -5s;
}

.wl-login-minimal__orb--3 {
    width: 180px;
    height: 180px;
    top: 42%;
    right: 18%;
    background: rgba(var(--reseller-primary-rgb, 115, 103, 240), 0.12);
    animation-duration: 14s;
    animation-delay: -9s;
}

.wl-login-minimal__dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--wl-primary, var(--reseller-primary, #7367f0));
    opacity: 0.25;
    animation: wl-minimal-dot-float 8s ease-in-out infinite;
}

.wl-login-minimal__dot--1 { top: 18%; left: 14%; animation-delay: 0s; }
.wl-login-minimal__dot--2 { top: 28%; right: 16%; width: 6px; height: 6px; background: var(--wl-secondary, var(--reseller-secondary, #28c76f)); animation-delay: -2s; animation-duration: 9s; }
.wl-login-minimal__dot--3 { bottom: 22%; left: 20%; width: 5px; height: 5px; animation-delay: -4s; animation-duration: 10s; }
.wl-login-minimal__dot--4 { bottom: 30%; right: 22%; animation-delay: -6s; animation-duration: 11s; }

@keyframes wl-minimal-backdrop-shift {
    0%, 100% { background-position: 0% 40%; }
    50% { background-position: 100% 60%; }
}

@keyframes wl-minimal-grid-drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(24px, 24px); }
}

@keyframes wl-minimal-orb-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -16px) scale(1.06); }
}

@keyframes wl-minimal-dot-float {
    0%, 100% { transform: translateY(0); opacity: 0.2; }
    50% { transform: translateY(-12px); opacity: 0.45; }
}

@keyframes wl-minimal-glow-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.08); opacity: 0.85; }
}

@keyframes wl-minimal-card-enter {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes wl-minimal-shimmer {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

@keyframes wl-minimal-fade-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wl-login-minimal__wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
}

.wl-login-minimal__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(var(--reseller-primary-rgb, 115, 103, 240), 0.12), transparent 65%);
    pointer-events: none;
    z-index: 0;
    animation: wl-minimal-glow-pulse 6s ease-in-out infinite;
}

.wl-login-card--minimal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--wl-primary, var(--reseller-primary, #7367f0)),
        var(--wl-secondary, var(--reseller-secondary, #28c76f)),
        var(--wl-primary, var(--reseller-primary, #7367f0))
    );
    background-size: 200% auto;
    animation: wl-minimal-shimmer 4s linear infinite;
}

.wl-login-minimal__brand {
    margin-bottom: 0.5rem;
    animation: wl-minimal-fade-up 0.55s ease both;
    animation-delay: 0.15s;
}

.wl-login--minimal .wl-login-form__header {
    animation: wl-minimal-fade-up 0.55s ease both;
    animation-delay: 0.25s;
}

.wl-login--minimal .wl-login-form__body {
    animation: wl-minimal-fade-up 0.55s ease both;
    animation-delay: 0.35s;
}

.wl-login-minimal__copyright {
    margin: 1.25rem 0 0;
    font-size: 0.75rem;
    color: #94a3b8;
    animation: wl-minimal-fade-up 0.55s ease both;
    animation-delay: 0.5s;
}

@media (prefers-reduced-motion: reduce) {
    .wl-login-minimal__backdrop,
    .wl-login-minimal__backdrop::after,
    .wl-login-minimal__orb,
    .wl-login-minimal__dot,
    .wl-login-minimal__glow,
    .wl-login-card--minimal,
    .wl-login-card--minimal::before,
    .wl-login-minimal__brand,
    .wl-login--minimal .wl-login-form__header,
    .wl-login--minimal .wl-login-form__body,
    .wl-login-minimal__copyright {
        animation: none !important;
    }
}

/* ==========================================================================
   Preview banner & settings picker
   ========================================================================== */

.login-template-preview-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(90deg, #ff9f43, #ffb976);
    color: #fff;
    text-align: center;
    padding: 0.55rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(255, 159, 67, 0.35);
}

.login-template-picker-card {
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    border: 2px solid #ebe9f1 !important;
    height: 100%;
    border-radius: 0.75rem !important;
}

.login-template-picker-card:hover {
    border-color: rgba(var(--bs-primary-rgb), 0.4) !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.login-template-picker-card.is-selected {
    border-color: var(--bs-primary) !important;
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.15);
}

.login-template-picker-thumb {
    height: 148px;
    border-radius: 0.625rem;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    position: relative;
}

.login-template-picker-thumb-classic {
    display: flex;
}

.login-template-picker-thumb-classic .thumb-art {
    flex: 0 0 55%;
    background: linear-gradient(145deg, #7367f0, #5e50ee 50%, #28c76f);
    position: relative;
}

.login-template-picker-thumb-classic .thumb-art::after {
    content: '';
    position: absolute;
    inset: 12px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.15);
}

.login-template-picker-thumb-classic .thumb-form {
    flex: 1;
    padding: 0.85rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-template-picker-thumb-gradient {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem;
}

.login-template-picker-thumb-gradient .thumb-card {
    width: 44%;
    height: 72%;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 0.4rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    padding: 0.65rem;
}

.login-template-picker-thumb-minimal {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
}

.login-template-picker-thumb-minimal .thumb-card {
    width: 52%;
    height: 74%;
    background: #fff;
    border-radius: 0.4rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
    padding: 0.65rem;
}

.login-template-picker-thumb .thumb-line {
    height: 5px;
    border-radius: 999px;
    background: #e2e8f0;
    margin-bottom: 0.35rem;
}

.login-template-picker-thumb .thumb-line.short {
    width: 58%;
}

.login-template-picker-thumb .thumb-line.btn {
    height: 9px;
    margin-top: 0.45rem;
    border-radius: 0.25rem;
}

/* Override legacy auth styles inside white-label forms */
.wl-login .auth-wrapper {
    min-height: auto;
}

.wl-login .brand-logo {
    position: static;
}

.blank-page .wl-login {
    margin: -1rem -1rem 0;
}

@media (max-width: 991.98px) {
    .wl-login-gradient__layout .row {
        min-height: auto !important;
        padding: 2.5rem 0;
    }
}

/* ==========================================================================
   Platform login (admin + main-domain customers)
   ========================================================================== */

.wl-login--platform {
    --wl-primary: #6366f1;
    --wl-secondary: #06b6d4;
    --wl-primary-rgb: 99, 102, 241;
    --wl-secondary-rgb: 6, 182, 212;
    background: #f8fafc;
    overflow-x: hidden;
    max-width: 100%;
}

/* auth-wrapper defaults to display:flex — breaks full-width split grid */
.wl-login--platform.auth-wrapper {
    display: block;
    width: 100%;
    max-width: none;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0;
    margin: 0;
}

.blank-page .wl-login--platform {
    margin: 0;
    width: 100%;
}

.wl-login-platform__grid {
    display: grid;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    grid-template-columns: 1fr;
}

.wl-login-platform__hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 2.5rem clamp(2rem, 4vw, 4rem);
    background: #0b1120;
    color: #f8fafc;
    overflow: hidden;
}

.wl-login-platform__mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 20%, rgba(99, 102, 241, 0.45) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 80% 70%, rgba(6, 182, 212, 0.35) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 60% 10%, rgba(139, 92, 246, 0.25) 0%, transparent 45%),
        linear-gradient(155deg, #0b1120 0%, #111827 45%, #0f172a 100%);
    animation: wl-platform-mesh-shift 18s ease-in-out infinite alternate;
}

.wl-login-platform__noise {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.wl-login-platform__anim {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.wl-login-platform__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: wl-platform-float 12s ease-in-out infinite;
}

.wl-login-platform__orb--1 {
    width: 280px;
    height: 280px;
    background: rgba(99, 102, 241, 0.55);
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.wl-login-platform__orb--2 {
    width: 220px;
    height: 220px;
    background: rgba(6, 182, 212, 0.45);
    bottom: 15%;
    right: 5%;
    animation-delay: -4s;
}

.wl-login-platform__orb--3 {
    width: 160px;
    height: 160px;
    background: rgba(167, 139, 250, 0.35);
    top: 45%;
    right: 25%;
    animation-delay: -8s;
}

.wl-login-platform__ring {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: wl-platform-ring-pulse 6s ease-in-out infinite;
}

.wl-login-platform__ring--1 {
    width: 420px;
    height: 420px;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
}

.wl-login-platform__ring--2 {
    width: 560px;
    height: 560px;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    animation-delay: -3s;
}

.wl-login-platform__sms-stream {
    position: absolute;
    right: clamp(1rem, 4vw, 3rem);
    top: 50%;
    transform: translateY(-50%);
    width: min(220px, 28%);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    pointer-events: none;
}

@media (max-width: 1199.98px) {
    .wl-login-platform__sms-stream {
        opacity: 0.45;
        width: min(180px, 22%);
    }
}

.wl-login-platform__sms {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.85rem;
    backdrop-filter: blur(8px);
    animation: wl-platform-sms-rise 8s ease-in-out infinite;
}

.wl-login-platform__sms--1 { animation-delay: 0s; opacity: 0.9; }
.wl-login-platform__sms--2 { animation-delay: -2s; opacity: 0.75; margin-left: 1rem; }
.wl-login-platform__sms--3 { animation-delay: -4s; opacity: 0.85; }
.wl-login-platform__sms--4 { animation-delay: -6s; opacity: 0.7; margin-left: 0.5rem; }

.wl-login-platform__sms-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6366f1;
    flex-shrink: 0;
    margin-top: 0.35rem;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.8);
}

.wl-login-platform__sms-dot.delivered {
    background: #10b981;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.8);
}

.wl-login-platform__sms-line {
    display: block;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    width: 100%;
    margin-bottom: 0.35rem;
}

.wl-login-platform__sms-line.short {
    width: 55%;
    margin-bottom: 0;
}

.wl-login-platform__pulse-node {
    position: absolute;
    left: 18%;
    bottom: 22%;
    width: 64px;
    height: 64px;
}

.wl-login-platform__pulse-core {
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    box-shadow: 0 0 24px rgba(99, 102, 241, 0.6);
}

.wl-login-platform__pulse-wave {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(99, 102, 241, 0.4);
    animation: wl-platform-pulse-wave 2.5s ease-out infinite;
}

.wl-login-platform__pulse-wave--2 {
    animation-delay: 1.25s;
}

.wl-login-platform__hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
    width: 100%;
    max-width: 560px;
    min-height: 0;
}

.wl-login-platform__headline {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 1.5rem 0 2rem;
    color: #fff;
    animation: wl-platform-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.wl-login-platform__copy {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0;
}

.wl-login-platform__features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
}

.wl-login-platform__features li {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    animation: wl-platform-fade-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.wl-login-platform__features li:nth-child(1) { animation-delay: 0.4s; }
.wl-login-platform__features li:nth-child(2) { animation-delay: 0.5s; }
.wl-login-platform__features li:nth-child(3) { animation-delay: 0.6s; }

.wl-login-platform__feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #a5b4fc;
    flex-shrink: 0;
    transition: transform 0.25s ease, background 0.25s ease;
}

.wl-login-platform__features li:hover .wl-login-platform__feature-icon {
    transform: scale(1.06);
    background: rgba(99, 102, 241, 0.2);
}

.wl-login-platform__feature-icon svg {
    width: 18px;
    height: 18px;
}

.wl-login-platform__features strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 0.15rem;
}

.wl-login-platform__features span {
    font-size: 0.8125rem;
    color: rgba(248, 250, 252, 0.55);
    line-height: 1.45;
}

.wl-login-platform__footnote {
    font-size: 0.8125rem;
    color: rgba(248, 250, 252, 0.4);
    margin: 0;
}

.wl-login-platform__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    padding:
        max(1.5rem, env(safe-area-inset-top, 0px))
        max(1.25rem, env(safe-area-inset-right, 0px))
        max(2rem, env(safe-area-inset-bottom, 0px))
        max(1.25rem, env(safe-area-inset-left, 0px));
    min-height: 100vh;
    min-height: 100dvh;
}

.wl-login-platform__mobile-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: clamp(7rem, 28vw, 10rem);
    background:
        radial-gradient(ellipse 90% 100% at 50% 0%, rgba(99, 102, 241, 0.22) 0%, transparent 70%),
        radial-gradient(ellipse 60% 80% at 80% 20%, rgba(6, 182, 212, 0.12) 0%, transparent 55%),
        linear-gradient(180deg, rgba(99, 102, 241, 0.08) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.wl-login-platform__panel-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 100% 0%, rgba(99, 102, 241, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(6, 182, 212, 0.05) 0%, transparent 35%),
        #f8fafc;
}

.wl-login-card--platform {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    padding: 2.25rem 2rem 2rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow:
        0 4px 6px rgba(15, 23, 42, 0.02),
        0 24px 48px rgba(15, 23, 42, 0.08);
    animation: wl-platform-card-enter 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.wl-login-card--platform::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, var(--wl-primary), var(--wl-secondary));
}

.wl-login-platform__mobile-tagline {
    position: relative;
    z-index: 1;
    margin-top: 1.5rem;
    font-size: 0.8125rem;
    color: #94a3b8;
}

.wl-login--platform .wl-login-brand--light img {
    max-height: 48px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.wl-login--platform .wl-login-brand--light .brand-text {
    color: #fff;
    font-size: 1.35rem;
}

.wl-login--platform .wl-login-submit {
    background: linear-gradient(135deg, var(--wl-primary) 0%, #4f46e5 50%, var(--wl-secondary) 100%) !important;
    background-size: 200% 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-position 0.4s ease;
    min-height: 3rem;
}

.wl-login--platform .wl-login-submit:hover {
    background-position: 100% 0;
}

/* Platform form — touch-friendly inputs (prevents iOS zoom on focus) */
.wl-login--platform .wl-login-input {
    font-size: 16px !important;
}

.wl-login--platform .wl-login-input-toggle {
    min-width: 2.75rem;
    min-height: 2.75rem;
}

.wl-login--platform .wl-login-brand--mobile {
    position: relative;
    z-index: 1;
    justify-content: center;
    width: 100%;
    margin-bottom: 1.5rem;
}

.wl-login--platform .wl-login-brand--mobile img {
    max-height: 44px;
}

.wl-login--platform .wl-login-footer-text {
    text-align: center;
    line-height: 1.5;
}

.wl-login--platform .wl-login-social {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.wl-login--platform .wl-login-demo-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

@keyframes wl-platform-mesh-shift {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.05) translate(-2%, 1%); }
}

@keyframes wl-platform-float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(12px, -18px); }
}

@keyframes wl-platform-ring-pulse {
    0%, 100% { opacity: 0.25; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.45; transform: translate(-50%, -50%) scale(1.03); }
}

@keyframes wl-platform-sms-rise {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(-6px); opacity: 1; }
}

@keyframes wl-platform-pulse-wave {
    0% { transform: scale(0.6); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}

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

@keyframes wl-platform-card-enter {
    from { opacity: 0; transform: translateY(24px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes wl-platform-field-enter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 575.98px) {
    .wl-login-platform__panel {
        justify-content: flex-start;
        padding-top: max(1.25rem, env(safe-area-inset-top, 0px));
        min-height: auto;
    }

    .wl-login-card--platform {
        padding: 1.5rem 1.25rem 1.375rem;
        border-radius: 1rem;
        box-shadow:
            0 2px 4px rgba(15, 23, 42, 0.03),
            0 16px 32px rgba(15, 23, 42, 0.07);
    }

    .wl-login-form__header--platform .wl-login-form__title {
        font-size: 1.375rem;
        margin-bottom: 1.25rem;
        text-align: center;
    }

    .wl-login-platform__mobile-tagline {
        margin-top: 1.25rem;
        padding: 0 0.5rem;
    }

    .wl-login--platform .wl-login-brand--mobile img {
        max-height: 40px;
    }
}

@media (max-width: 767.98px) {
    .wl-login-platform__grid {
        min-height: auto;
    }

    .wl-login-platform__panel {
        min-height: auto;
        padding-bottom: max(2.5rem, env(safe-area-inset-bottom, 0px));
    }
}

/* Tablet — stacked hero banner + centered form */
@media (min-width: 768px) and (max-width: 991.98px) {
    .wl-login-platform__grid {
        min-height: auto;
    }

    .wl-login-platform__hero {
        min-height: auto;
        padding: 2rem 2.5rem 2.25rem;
    }

    .wl-login-platform__hero-inner {
        max-width: none;
    }

    .wl-login-platform__headline {
        margin: 1rem 0 1.25rem;
        font-size: clamp(1.5rem, 3.5vw, 1.875rem);
    }

    .wl-login-platform__copy {
        padding: 0.5rem 0 0;
    }

    .wl-login-platform__features {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }

    .wl-login-platform__features li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.625rem;
    }

    .wl-login-platform__features span {
        font-size: 0.75rem;
    }

    .wl-login-platform__sms-stream,
    .wl-login-platform__pulse-node,
    .wl-login-platform__ring {
        display: none;
    }

    .wl-login-platform__panel {
        min-height: auto;
        padding: 2.5rem clamp(2rem, 5vw, 3rem) 3rem;
    }

    .wl-login-card--platform {
        max-width: min(480px, 100%);
    }
}

/* Desktop split layout */
@media (min-width: 992px) {
    .wl-login-platform__grid {
        grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);
    }

    .wl-login-platform__panel {
        padding:
            max(2.5rem, env(safe-area-inset-top, 0px))
            clamp(2rem, 4vw, 4rem)
            max(2.5rem, env(safe-area-inset-bottom, 0px));
    }

    .wl-login-card--platform {
        max-width: 420px;
    }
}

@media (min-width: 1200px) {
    .wl-login-platform__grid {
        grid-template-columns: minmax(0, 1.18fr) minmax(420px, 0.82fr);
    }

    .wl-login-card--platform {
        max-width: 440px;
    }
}

@media (min-width: 1400px) {
    .wl-login-platform__hero {
        padding: 3rem clamp(2.5rem, 5vw, 5rem);
    }

    .wl-login-platform__panel {
        padding-left: clamp(2.5rem, 5vw, 5rem);
        padding-right: clamp(2.5rem, 5vw, 5rem);
    }
}

@media (max-height: 700px) and (max-width: 991.98px) {
    .wl-login-platform__panel {
        padding-top: 1.25rem;
        padding-bottom: 1.5rem;
    }

    .wl-login-card--platform {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .wl-login-form__header--platform .wl-login-form__title {
        margin-bottom: 1rem;
    }

    .wl-login-field {
        margin-bottom: 0.875rem;
    }
}

@media (max-width: 991.98px) {
    .wl-login-platform__grid {
        grid-template-columns: 1fr;
    }

    .wl-login-card--platform {
        max-width: min(420px, 100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .wl-login--platform *,
    .wl-login--platform *::before,
    .wl-login--platform *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

