:root {
            --primary-blue: #103478;
            --navy-dark: #0a224a;
            --accent-pink: #ed147d;
            --accent-pink-end: #ff2d60;
            --accent-orange: #ff7e1d;
            --accent-green: #0ca872;
            --accent-purple: #8327db;
            --text-dark: #12284c;
            --text-muted: #53698a;
            --input-border: #d4e2f4;
            --input-focus: #1754b8;
            --shadow-btn: 0 6px 20px rgba(237, 20, 125, 0.35);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }

        html, body {
            width: 100%;
            max-width: 100%;
            overflow-x: hidden;
            font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: linear-gradient(135deg, #fff3f9 0%, #ffffff 40%, #edf6ff 100%);
            color: var(--text-dark);
            min-height: 100vh;
        }

        /* Mobile-First Shell */
        .login-page-wrapper {
            width: 100%;
            max-width: 440px;
            margin: 0 auto;
            background: #ffffff;
            min-height: 100vh;
            position: relative;
            box-shadow: 0 0 40px rgba(16, 52, 120, 0.08);
            overflow-x: hidden;
            display: flex;
            flex-direction: column;
            padding: 14px 14px 20px;
        }

        /* Confetti / Corner background decorative shapes */
        .corner-decor-top-left {
            position: absolute;
            top: -40px;
            left: -40px;
            width: 140px;
            height: 140px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(237, 20, 125, 0.16) 0%, rgba(255, 255, 255, 0) 70%);
            pointer-events: none;
            z-index: 1;
        }

        .corner-decor-top-right {
            position: absolute;
            top: 0;
            right: 0;
            width: 140px;
            height: 140px;
            background: radial-gradient(circle, rgba(16, 84, 184, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
            pointer-events: none;
            z-index: 1;
        }

        .corner-decor-bottom-left {
            position: absolute;
            bottom: -50px;
            left: -50px;
            width: 180px;
            height: 180px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(237, 20, 125, 0.22) 0%, rgba(255, 255, 255, 0) 70%);
            pointer-events: none;
            z-index: 1;
        }

        /* Floating back button so it doesn't displace the centered logo */
        .back-home-btn {
            position: absolute;
            left: 12px;
            top: 12px;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 11px;
            font-weight: 700;
            color: var(--primary-blue);
            text-decoration: none;
            padding: 4px 10px;
            border-radius: 999px;
            background: rgba(16, 52, 120, 0.06);
            transition: background 0.15s ease;
            z-index: 20;
        }

        .back-home-btn:hover {
            background: rgba(16, 52, 120, 0.12);
        }

        /* ================= TOP BAR WITH CENTERED LOGO ================= */
        .login-top-bar {
            position: relative;
            z-index: 5;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 12px;
            padding-top: 4px;
            width: 100%;
        }

        .brand-center-link {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-decoration: none;
        }

        .logo-box {
            width: 44px;
            height: 44px;
            border-radius: 12px;
            background: linear-gradient(135deg, #6c23ce 0%, #351782 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            box-shadow: 0 4px 12px rgba(108, 35, 206, 0.28);
            margin-bottom: 6px;
        }

        .logo-box::before {
            content: '';
            position: absolute;
            top: -4px;
            left: -4px;
            width: 7px;
            height: 7px;
            border-radius: 2px;
            background: #00d2ff;
            transform: rotate(20deg);
        }

        .logo-box::after {
            content: '';
            position: absolute;
            bottom: -3px;
            right: -3px;
            width: 7px;
            height: 7px;
            border-radius: 2px;
            background: #ff2d60;
            transform: rotate(-35deg);
        }

        .logo-box svg {
            width: 26px;
            height: 26px;
        }

        .brand-title {
            font-size: 16px;
            font-weight: 800;
            letter-spacing: -0.3px;
            white-space: nowrap;
        }

        .brand-title .part-digital { color: #0d2c68; }
        .brand-title .part-scratch { color: #ed147d; }
        .brand-title .part-cards { color: #ed147d; }
        .brand-title .part-design { color: #0d2c68; }

        .brand-tagline {
            font-size: 9.5px;
            font-weight: 800;
            margin-top: 2px;
            display: flex;
            gap: 4px;
            white-space: nowrap;
        }

        .tag-create { color: #ed147d; }
        .tag-engage { color: #0f52ba; }
        .tag-reward { color: #ff7e1d; }
        .tag-grow { color: #0ca872; }

        /* Top-right script callout */
        .top-script-callout {
            position: absolute;
            right: 0;
            top: 2px;
            font-family: 'Caveat', cursive, sans-serif;
            font-size: 13.5px;
            line-height: 1.05;
            color: #0d3478;
            text-align: right;
            transform: rotate(-4deg);
            pointer-events: none;
            text-shadow: 0 1px 2px rgba(255,255,255,0.9);
        }

        .top-script-callout span {
            color: var(--accent-pink);
            font-weight: 700;
        }

        /* ================= HEADING ================= */
        .login-create-account-cta {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 14px;
            max-width: 100%;
            min-height: 54px;
            padding: 13px 24px;
            border-radius: 16px;
            background: linear-gradient(115deg, #e21479, #893ac8 65%, #355bc4);
            color: #2410a8c4;
            font-size: clamp(20px, 4.7vw, 27px);
            font-weight: 800;
            text-decoration: none;
            box-shadow: 0 7px 20px rgba(174, 37, 134, .2);
        }
        .login-create-account-cta:hover { box-shadow: 0 8px 24px rgba(174, 37, 134, .3); }
        .login-create-account-cta:focus-visible { outline: 3px solid #355bc4; outline-offset: 4px; }
        .login-existing-note { margin: 7px 0 0; color: #244475; font-size: 12px; font-weight: 700; }
        .login-heading-wrap {
            text-align: center;
            margin-bottom: 14px;
            position: relative;
            z-index: 5;
        }

        .login-main-title {
            font-size: 25px;
            font-weight: 900;
            color: var(--primary-blue);
            letter-spacing: -0.4px;
            line-height: 1.15;
            margin-bottom: 4px;
        }

        .login-sub-title {
            font-size: 11px;
            color: var(--text-muted);
            line-height: 1.4;
            max-width: 320px;
            margin: 0 auto;
            font-weight: 500;
        }

        /* ================= FORM STYLING ================= */
        .login-form-box {
            position: relative;
            z-index: 5;
            width: 100%;
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-bottom: 12px;
        }

        .input-field-group {
            position: relative;
            display: flex;
            align-items: center;
            width: 100%;
        }

        .input-lead-icon {
            position: absolute;
            left: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #7b8fa8;
            pointer-events: none;
        }

        .input-lead-icon svg {
            width: 17px;
            height: 17px;
        }

        .login-input {
            width: 100%;
            padding: 11px 14px 11px 42px;
            border: 1.5px solid var(--input-border);
            border-radius: 14px;
            font-size: 12.5px;
            font-family: inherit;
            color: var(--text-dark);
            background: #ffffff;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
            outline: none;
        }

        .login-input:focus {
            border-color: var(--input-focus);
            box-shadow: 0 0 0 3px rgba(23, 84, 184, 0.12);
        }

        .login-input.is-invalid {
            border-color: #cf222e !important;
            background-color: #fffbfa !important;
            box-shadow: 0 0 0 3px rgba(207, 34, 46, 0.12) !important;
        }

        .login-input.is-valid {
            border-color: #0ca872 !important;
            box-shadow: 0 0 0 3px rgba(12, 168, 114, 0.12) !important;
        }

        .field-feedback-hint {
            display: none;
            font-size: 11px;
            font-weight: 600;
            color: #cf222e;
            padding: 1px 4px 0;
            margin-top: -3px;
            margin-bottom: 2px;
            line-height: 1.35;
        }

        .login-input::placeholder {
            color: #8c9eb5;
            font-weight: 500;
        }

        .login-input.has-tail {
            padding-right: 42px;
        }

        .password-toggle-btn {
            position: absolute;
            right: 12px;
            background: none;
            border: none;
            color: #7b8fa8;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 4px;
        }

        .password-toggle-btn svg {
            width: 17px;
            height: 17px;
        }

        .form-options-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 11px;
            padding: 0 2px;
        }

        .remember-checkbox-label {
            display: flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
            color: var(--text-dark);
            font-weight: 600;
            user-select: none;
        }

        .remember-checkbox-label input[type="checkbox"] {
            accent-color: #0f52ba;
            width: 15px;
            height: 15px;
            border-radius: 4px;
            cursor: pointer;
        }

        .forgot-link {
            color: #0f52ba;
            text-decoration: none;
            font-weight: 700;
        }

        .forgot-link:hover {
            text-decoration: underline;
        }

        .btn-login-submit {
            width: 100%;
            padding: 12px 20px;
            border-radius: 999px;
            background: linear-gradient(90deg, #ed147d 0%, #ff2d60 100%);
            color: #ffffff;
            font-size: 14px;
            font-weight: 800;
            border: none;
            cursor: pointer;
            box-shadow: var(--shadow-btn);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: transform 0.15s ease;
            margin-top: 2px;
        }

        .btn-login-submit:active {
            transform: scale(0.98);
        }

        .register-callout-wrap {
            text-align: center;
            font-size: 11px;
            color: var(--text-muted);
        }

        .register-callout-wrap a {
            color: #0f52ba;
            font-weight: 800;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 3px;
            margin-top: 1px;
        }

        /* ================= BOTTOM SECTION: SIDE-BY-SIDE ON MOBILE LIKE IMAGE 2 ================= */
        .login-bottom-section {
            position: relative;
            z-index: 5;
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid rgba(16, 52, 120, 0.07);
            display: grid;
            grid-template-columns: 0.9fr 1.1fr; /* LEFT: Phone/Video, RIGHT: Features & Script */
            gap: 10px;
            align-items: center;
            width: 100%;
        }

        /* Left Column: Phone Card Mockup / Video Frame */
        .login-left-video-col {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
            min-width: 0;
        }

        .login-video-card-frame {
            position: relative;
            width: 100%;
            max-width: 155px;
            aspect-ratio: 9 / 13.5;
            border-radius: 16px;
            background: none;
            padding: 0;
            border: none;
            box-shadow: 0 8px 22px rgba(16, 52, 120, 0.12);
            overflow: hidden;
        }

        .card-inner-screen {
            position: relative;
            width: 100%;
            height: 100%;
            border-radius: 14px;
            overflow: hidden;
            background: #15113d;
        }

        /* AUTOPLAY MP4 VIDEO */
        .banner-mp4-video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            border-radius: 14px;
            background: #120f38;
        }

        /* Fallback preview matching Image 2 when src is empty */
        .video-fallback-mockup {
            position: absolute;
            inset: 0;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: center;
            padding: 8px 6px;
            text-align: center;
            background: radial-gradient(circle at 50% 35%, #2e1773 0%, #15093e 100%);
            color: #ffffff;
            pointer-events: none;
        }

        .scratch-visual-burst {
            position: relative;
            width: 100%;
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .scratch-foil-outer {
            position: relative;
            width: 86px;
            height: 86px;
            border-radius: 13px;
            background: radial-gradient(circle, #e2ebf5 25%, #a8b8cc 65%, #76879e 100%);
            border: 2px solid rgba(255, 255, 255, 0.85);
            box-shadow: 0 5px 12px rgba(0, 0, 0, 0.35);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .scratch-foil-tear {
            position: absolute;
            inset: 4px;
            background: radial-gradient(circle, #ffd447 0%, #ff8000 65%, #c80036 100%);
            border-radius: 9px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .gift-box-icon {
            font-size: 28px;
            filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35));
            animation: bounceGift 2.5s infinite ease-in-out;
        }

        @keyframes bounceGift {
            0%, 100% { transform: translateY(0) scale(1); }
            50% { transform: translateY(-4px) scale(1.04); }
        }

        .hand-scratch-pointer {
            position: absolute;
            right: -6px;
            bottom: 2px;
            font-size: 22px;
            filter: drop-shadow(0 3px 5px rgba(0,0,0,0.5));
            transform: rotate(-15deg);
            animation: scratchAction 2s infinite ease-in-out;
        }

        @keyframes scratchAction {
            0%, 100% { transform: translate(0, 0) rotate(-15deg); }
            50% { transform: translate(-8px, -6px) rotate(-22deg); }
        }

        .card-headline-badge {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
            width: 100%;
        }

        .scratch-title-text {
            font-size: 13px;
            font-weight: 900;
            line-height: 1.1;
            text-transform: uppercase;
            letter-spacing: -0.3px;
            background: linear-gradient(180deg, #ffffff 0%, #ffd447 100%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

        .video-user-hint {
            font-size: 6.5px;
            color: rgba(255, 255, 255, 0.75);
            background: rgba(0, 0, 0, 0.35);
            padding: 2px 5px;
            border-radius: 999px;
            margin-top: 1px;
        }

        /* Right Column: 3 Features List + Script Callout */
        .login-right-features-col {
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 9px;
            width: 100%;
            min-width: 0;
        }

        .login-features-list {
            display: flex;
            flex-direction: column;
            gap: 9px;
            width: 100%;
        }

        .feature-bullet {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .bullet-icon {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #ffffff;
            flex-shrink: 0;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        }

        .bullet-icon.pink { background: linear-gradient(135deg, #ed147d 0%, #d80068 100%); }
        .bullet-icon.blue { background: linear-gradient(135deg, #0d5dd6 0%, #08439e 100%); }
        .bullet-icon.green { background: linear-gradient(135deg, #0ba872 0%, #038a5b 100%); }

        .bullet-icon svg {
            width: 16px;
            height: 16px;
        }

        .bullet-text-wrap {
            display: flex;
            flex-direction: column;
            min-width: 0;
        }

        .bullet-title {
            font-size: 11.5px;
            font-weight: 800;
            color: var(--primary-blue);
            line-height: 1.15;
            white-space: nowrap;
        }

        .bullet-desc {
            font-size: 9px;
            color: var(--text-muted);
            line-height: 1.25;
            font-weight: 500;
            white-space: nowrap;
        }

        /* Bottom script callout placed directly under the 3 bullets */
        .bottom-script-callout {
            font-family: 'Caveat', cursive, sans-serif;
            font-size: 14.5px;
            line-height: 1.1;
            color: #0d3478;
            font-weight: 700;
            transform: rotate(-3deg);
            margin-top: 3px;
            padding-left: 2px;
        }

        .bottom-script-callout span {
            color: var(--accent-pink);
            display: block;
        }

        /* ================= DESKTOP / WEB VIEW (SCREENS >= 860px) ================= */
        @media (min-width: 860px) {
            html, body {
                background: linear-gradient(135deg, #fff0f7 0%, #ffffff 35%, #eaf4ff 100%);
            }

            .login-page-wrapper {
                max-width: 1040px;
                min-height: auto;
                margin: 40px auto;
                border-radius: 32px;
                padding: 40px 48px;
                box-shadow: 0 20px 60px rgba(16, 52, 120, 0.12);
                border: 1px solid rgba(16, 52, 120, 0.08);
            }

            .back-home-btn {
                position: absolute;
                left: 40px;
                top: 40px;
                font-size: 13.5px;
                padding: 6px 16px;
            }

            .login-top-bar {
                margin-bottom: 24px;
            }

            .logo-box {
                width: 52px;
                height: 52px;
                border-radius: 14px;
            }

            .logo-box svg {
                width: 32px;
                height: 32px;
            }

            .brand-title {
                font-size: 22px;
            }

            .brand-tagline {
                font-size: 13px;
                margin-top: 4px;
                gap: 6px;
            }

            .top-script-callout {
                font-size: 20px;
                top: 8px;
                right: 8px;
            }

            /* 2-Column Grid on Desktop: Left Form, Right Video + Features */
            .desktop-content-grid {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 48px;
                align-items: center;
                margin-top: 10px;
            }

            .login-heading-wrap {
                text-align: left;
                margin-bottom: 22px;
            }

            .login-main-title {
                font-size: 38px;
                margin-bottom: 8px;
            }

            .login-sub-title {
                font-size: 15px;
                margin: 0;
                max-width: 440px;
            }

            .login-form-box {
                gap: 16px;
                margin-bottom: 20px;
            }

            .login-input {
                padding: 15px 16px 15px 48px;
                font-size: 15px;
                border-radius: 16px;
            }

            .login-input.has-tail {
                padding-right: 48px;
            }

            .input-lead-icon {
                left: 16px;
            }
            .input-lead-icon svg {
                width: 20px;
                height: 20px;
            }

            .form-options-row {
                font-size: 13px;
            }

            .btn-login-submit {
                padding: 15px 24px;
                font-size: 16.5px;
                margin-top: 6px;
            }

            .register-callout-wrap {
                font-size: 13.5px;
                text-align: left;
                margin-top: 6px;
            }

            /* Right Column on Desktop */
            .login-bottom-section {
                margin-top: 0;
                padding-top: 0;
                border-top: none;
                grid-template-columns: 0.95fr 1.05fr;
                gap: 20px;
                background: linear-gradient(135deg, #f3f8fe 0%, #fff7fb 100%);
                padding: 30px;
                border-radius: 24px;
                border: 1px solid rgba(16, 52, 120, 0.06);
            }

            .login-video-card-frame {
                max-width: 185px;
                border-radius: 20px;
                padding: 0;
                border: none;
                box-shadow: 0 14px 32px rgba(16, 52, 120, 0.14);
            }

            .card-inner-screen {
                border-radius: 16px;
            }

            .scratch-foil-outer {
                width: 110px;
                height: 110px;
            }

            .gift-box-icon {
                font-size: 38px;
            }

            .hand-scratch-pointer {
                font-size: 30px;
            }

            .scratch-title-text {
                font-size: 17px;
            }

            .login-right-features-col {
                gap: 14px;
            }

            .login-features-list {
                gap: 14px;
            }

            .bullet-icon {
                width: 42px;
                height: 42px;
            }

            .bullet-icon svg {
                width: 20px;
                height: 20px;
            }

            .bullet-title {
                font-size: 14.5px;
            }

            .bullet-desc {
                font-size: 12px;
            }

            .bottom-script-callout {
                font-size: 18px;
                margin-top: 6px;
            }
        }

@property --account-border-angle{syntax:'<angle>';initial-value:0deg;inherits:false}
.login-create-account-cta{
    border:3px solid transparent;
    background:linear-gradient(115deg,#d1e214,#cde70c 65%,#d6e907) padding-box,
      conic-gradient(from var(--account-border-angle),#b68a14 0deg,#ffe135 45deg,#fffbd0 65deg,#ffcf00 85deg,#b68a14 130deg,#b68a14 360deg) border-box;
    animation:account-border-run 2.5s linear infinite,account-glow 1.8s ease-in-out infinite,account-button-blink 1.8s ease-in-out infinite;
}
@keyframes account-border-run{to{--account-border-angle:360deg}}
@keyframes account-glow{0%,100%{box-shadow:0 0 5px #ffcf0055}50%{box-shadow:0 0 20px #ffcf00aa}}
@media(prefers-reduced-motion:reduce){.login-create-account-cta{animation:none;--account-border-angle:65deg}}

@keyframes account-button-blink{0%,100%{transform:scale(1)}50%{transform:scale(1.06)}}
