.lv-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: #2d3a4a;
    background: rgba(255, 255, 255, 0.78);
    border: 1.5px solid rgba(210, 215, 230, 0.65);
    border-radius: 14px;
    outline: none;
    transition: border-color 0.18s;
    box-sizing: border-box;
    margin-bottom: 8px;
}

.lv-input::placeholder {
    color: #a0aec0;
}

.lv-input:focus {
    border-color: rgba(99, 102, 241, 0.55);
    background: rgba(255, 255, 255, 0.9);
}

.lv-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #7870d0 0%, #5b5ea6 55%, #4c51c0 100%);
    box-shadow: 0 8px 28px rgba(91, 94, 166, 0.38);
    transition: box-shadow 0.2s, opacity 0.2s;
    letter-spacing: 0.1px;
}

.lv-btn:hover:not(:disabled) {
    box-shadow: 0 10px 34px rgba(91, 94, 166, 0.52);
}

.lv-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.lv-link {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 17px !important;
    font-weight: 500 !important;
    color: #8907e0 !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
    padding: 0 !important;
    display: inline !important;
}

.lv-link:hover {
    text-decoration: underline !important;
}

.lv-card-header {
    text-align: center;
    margin-bottom: 22px;
}

.lv-card-header h1 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.64px;
    color: #1a2230;
    margin: 0 0 10px;
}

.lv-card-header p {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    letter-spacing: -0.36px;
    color: #6b7280;
    margin: 0;
    text-align: center;
}

/* Instagram-style: error shown BELOW the button, not above */
.lv-error {
    margin-top: 14px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 11px 14px;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: #b91c1c;
    background: rgba(254, 242, 242, 0.9);
    border-left: 3px solid #ef4444;
}

.lv-error-blocked {
    margin-top: 14px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 11px 14px;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: #92400e;
    background: rgba(255, 251, 235, 0.95);
    border-left: 3px solid #f59e0b;
}

.lv-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0;
}

.lv-divider-line {
    flex: 1;
    height: 1px;
    background: rgba(156, 163, 175, 0.32);
}

.lv-divider-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #9ca3af;
    letter-spacing: 0.4px;
}

.lv-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.lv-icon-right {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    line-height: 0;
}

.lv-icon-right:hover {
    color: #6b7280;
}

/* ── Keyframe animations ── */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0px);
        box-shadow: 0 24px 60px rgba(80, 90, 160, 0.18), 0 8px 20px rgba(124, 58, 237, 0.10);
    }

    50% {
        transform: translateY(-10px);
        box-shadow: 0 36px 80px rgba(80, 90, 160, 0.24), 0 16px 36px rgba(124, 58, 237, 0.16);
    }
}

@keyframes accentPulse {

    0%,
    100% {
        width: 44px;
        opacity: 1;
    }

    50% {
        width: 72px;
        opacity: 0.85;
    }
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardGlowPulse {

    0%,
    100% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    50% {
        box-shadow: 0 4px 18px rgba(124, 58, 237, 0.10);
    }
}

@keyframes flipInY {
    0% {
        opacity: 0;
        transform: perspective(1200px) rotateY(-90deg);
    }
    100% {
        opacity: 1;
        transform: perspective(1200px) rotateY(0deg);
    }
}

.flip-enter-active {
    animation: flipInY 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
    animation-delay: 0.12s;
    transform-origin: center center;
}

/* ── Page wrapper (column: split row + trust bar) ── */
.login-page {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    background-image: url('/images/common/login-bg.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    box-sizing: border-box;
    gap: 8px;
}

/* ── Top split row (branding + login card) ── */
.login-split {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
    min-height: 0;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

/* LEFT – branding panel */
.login-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 0px;
    position: relative;
}

.login-left-logo {
    position: absolute;
    top: 24px;
    left: 0;
}

.login-left-logo img {
    height: 52px;
    width: auto;
    display: block;
}

.login-left-body {
    margin-top: 76px;
}

/* Welcome label — animated fade-in */
.lf-welcome {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #5b5fc7;
    margin: 0 0 8px;
    display: block;
    animation: fadeSlideUp 0.6s ease both;
}

@keyframes waveHand {
    0% {
        transform: rotate(0deg);
    }

    10% {
        transform: rotate(14deg);
    }

    20% {
        transform: rotate(-8deg);
    }

    30% {
        transform: rotate(14deg);
    }

    40% {
        transform: rotate(-4deg);
    }

    50% {
        transform: rotate(10deg);
    }

    60% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.wave-emoji {
    display: inline-block;
    transform-origin: 70% 70%;
    animation: waveHand 2.5s ease-in-out infinite;
}

/* Hero heading — animated fade-in with delay */
.lf-hero {
    font-family: 'DM Sans', sans-serif;
    font-weight: 800;
    font-size: 48px;
    line-height: 1.12;
    letter-spacing: -1.2px;
    color: #1e1b4b;
    margin: 0 0 4px;
    animation: fadeSlideUp 0.6s ease 0.1s both;
}

/* "All in One Place." — shimmer sweep animation */
.lf-hero-gradient {
    font-family: 'DM Sans', sans-serif;
    font-weight: 800;
    font-size: 48px;
    line-height: 1.12;
    letter-spacing: -1.2px;
    background: linear-gradient(90deg,
            #7c3aed 0%,
            #a855f7 25%,
            #ec4899 50%,
            #f9a8d4 62%,
            #ec4899 75%,
            #a855f7 90%,
            #7c3aed 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin: 0 0 12px;
    animation: shimmer 3s linear infinite, fadeSlideUp 0.6s ease 0.2s both;
}

/* Accent bar — animated width pulse */
.lf-accent-bar {
    height: 4px;
    background: linear-gradient(90deg, #7c3aed, #a855f7, #ec4899);
    border-radius: 3px;
    margin-bottom: 12px;
    animation: accentPulse 2.4s ease-in-out infinite, fadeSlideUp 0.6s ease 0.3s both;
}

/* Subtitle — medium grey matching image */
.lf-sub {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: #4b5563;
    line-height: 1.65;
    max-width: 320px;
    margin: 0 0 16px;
}

/* Feature card grid */
.lf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 560px;
}

/* Feature cards — rich hover with glow, tilt, icon pop */
.lf-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.28s cubic-bezier(.4, 0, .2, 1),
        transform 0.28s cubic-bezier(.4, 0, .2, 1),
        border-color 0.28s,
        background 0.28s;
    animation: cardGlowPulse 4s ease-in-out infinite;
    cursor: default;
    position: relative;
    overflow: hidden;
}

/* Shine sweep on card hover */
.lf-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.55) 50%, transparent 100%);
    transform: skewX(-20deg);
    transition: none;
    pointer-events: none;
    opacity: 0;
}

.lf-card:hover::before {
    opacity: 1;
    left: 130%;
    transition: left 0.55s ease, opacity 0.1s;
}

.lf-card:hover {
    box-shadow: 0 12px 36px rgba(124, 58, 237, 0.20), 0 4px 12px rgba(236, 72, 153, 0.12);
    transform: translateY(-5px) scale(1.025);
    border-color: rgba(168, 85, 247, 0.4);
    background: rgba(255, 255, 255, 0.96);
}

.lf-card:hover .lf-card-icon svg {
    transform: scale(1.22) rotate(-6deg);
    transition: transform 0.28s cubic-bezier(.4, 0, .2, 1);
}

.lf-card-icon svg {
    transition: transform 0.28s cubic-bezier(.4, 0, .2, 1);
}

.lf-card-icon {
    width: 44px;
    height: 44px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

/* Card title — near-black matching image */
.lf-card-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    margin: 0;
}

/* Card description — cool grey matching image */
.lf-card-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 11.5px;
    color: #6b7280;
    line-height: 1.55;
    margin: 0;
}

/* Right column wrapper */
.login-right-col {
    width: 660px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* RIGHT – login panel */
.login-right {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 28px;
    background: rgba(255, 255, 255, 0.30);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(80, 90, 160, 0.18), 0 8px 20px rgba(124, 58, 237, 0.10);
    animation: floatCard 6s ease-in-out infinite;
}

.login-right-inner {
    width: 100%;
    max-width: 520px;
}

/* Glass card on the right */
.login-card {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    padding: 38px 48px 34px;
    box-shadow: 0 8px 40px rgba(80, 90, 140, 0.10);
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

/* ── Trust badges bar ── */
.lf-trust-wrapper {
    width: 100%;
    background: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 20px;
    padding: 12px 10px;
    box-shadow: 0 8px 32px rgba(80, 90, 160, 0.12), 0 2px 8px rgba(124, 58, 237, 0.07);
    box-sizing: border-box;
    animation: floatCard 6s ease-in-out infinite 1.5s;
}

.lf-trust-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    align-items: center;
}

.lf-trust-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding-right: 18px;
    padding-left: 18px;
    border-right: 1px solid rgba(100, 116, 139, 0.18);
}

.lf-trust-item:first-child {
    padding-left: 0px;
}

.lf-trust-item:last-child {
    border-right: none;
    padding-right: 0px;
}

.lf-trust-icon {
    width: 36px;
    height: 36px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.lf-trust-text strong {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 8px;
    font-weight: 700;
    color: #111827;
    line-height: 1.25;
    margin-bottom: 0;
}

.lf-trust-text span {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 8.5px;
    color: #6b7280;
    line-height: 1.1;
}

.login-footer-text {
    margin-top: auto;
    text-align: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    color: #4b5563;
    letter-spacing: -0.2px;
}

/* Responsive */
@media (max-width: 900px) {
    .login-page {
        padding: 12px;
        gap: 12px;
    }

    .login-left {
        display: none;
    }

    .login-right-col {
        width: auto;
        flex: 1;
        animation: none;
    }

    .lf-trust-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .lf-trust-bar {
        grid-template-columns: 1fr;
    }
}

/* ── Character bounce animation ── */
.animated-text {
    display: inline-block;
}

.char-bounce {
    display: inline-block;
    opacity: 0;
    animation: charFallBounce 0.5s ease-out forwards;
}

@keyframes charFallBounce {
    0% {
        opacity: 0;
        transform: translateY(-40px);
    }

    60% {
        opacity: 1;
        transform: translateY(6px);
    }

    80% {
        transform: translateY(-2px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}