/* portal: migrated from auth/login_new.blade.php */
:root {
            --lime: #76cf1c;
            --lime-bright: #9fe871;
            --lime-dim: #5dab13;
            --lime-glow: rgba(118, 207, 28, 0.55);
            --ink-dark: #030712;
            --ink-panel: #0c1222;
            --form-text: #111827;
            --form-muted: #6b7280;
            --form-border: #e5e7eb;
            --font: 'Plus Jakarta Sans', system-ui, sans-serif;
        }

        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

        html, body { min-height: 100%; }

        body {
            font-family: var(--font);
            display: flex;
            flex-direction: column;
            min-height: 100vh;
            color: #fff;
        }

        @media (min-width: 960px) {
            body { flex-direction: row; }
        }

        /* ========== LEFT: brand + map + GPS animation ========== */
        .split-left {
            position: relative;
            flex: 1.05;
            min-height: 42vh;
            overflow: hidden;
            display: none;
            flex-direction: column;
            background: linear-gradient(165deg, #050a14 0%, #0c1526 40%, #0a1628 100%);
        }

        @media (min-width: 960px) {
            .split-left { 
                display: flex;
                min-height: 100vh; 
            }
        }

        .split-left__bg {
            position: absolute;
            inset: 0;
            pointer-events: none;
        }

        /* Stylized “world” grid + meridians */
        .map-grid {
            position: absolute;
            inset: -10%;
            opacity: 0.35;
            background-image:
                linear-gradient(90deg, rgba(118, 207, 28, 0.12) 1px, transparent 1px),
                linear-gradient(rgba(118, 207, 28, 0.08) 1px, transparent 1px);
            background-size: 8% 100%, 100% 10%;
            transform: perspective(400px) rotateX(12deg) scale(1.05);
            transform-origin: center 70%;
        }

        .map-curve {
            position: absolute;
            left: 50%;
            top: 42%;
            width: 140%;
            height: 85%;
            transform: translate(-50%, -50%);
            border: 1px solid rgba(118, 207, 28, 0.1);
            border-radius: 50%;
            opacity: 0.5;
        }

        .map-curve:nth-child(2) {
            width: 115%;
            height: 70%;
            opacity: 0.35;
        }

        .map-curve:nth-child(3) {
            width: 92%;
            height: 56%;
            opacity: 0.25;
        }

        /* Twinkling data points */
        .map-dots {
            position: absolute;
            inset: 0;
        }

        .map-dots i {
            position: absolute;
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: var(--lime);
            box-shadow: 0 0 12px var(--lime-glow);
            animation: dotPulse 2.4s ease-in-out infinite;
        }

        .map-dots i:nth-child(1) { left: 12%; top: 28%; animation-delay: 0s; }
        .map-dots i:nth-child(2) { left: 22%; top: 52%; animation-delay: 0.4s; }
        .map-dots i:nth-child(3) { left: 35%; top: 35%; animation-delay: 0.8s; }
        .map-dots i:nth-child(4) { left: 48%; top: 58%; animation-delay: 0.2s; }
        .map-dots i:nth-child(5) { left: 58%; top: 32%; animation-delay: 1.1s; }
        .map-dots i:nth-child(6) { left: 72%; top: 48%; animation-delay: 0.6s; }
        .map-dots i:nth-child(7) { left: 82%; top: 38%; animation-delay: 1.4s; }
        .map-dots i:nth-child(8) { left: 18%; top: 68%; animation-delay: 0.9s; }
        .map-dots i:nth-child(9) { left: 65%; top: 22%; animation-delay: 0.3s; }
        .map-dots i:nth-child(10) { left: 40%; top: 72%; animation-delay: 1.2s; }

        @keyframes dotPulse {
            0%, 100% { opacity: 0.35; transform: scale(0.85); }
            50% { opacity: 1; transform: scale(1.15); }
        }

        .split-left__inner {
            position: relative;
            z-index: 2;
            flex: 1;
            display: flex;
            flex-direction: column;
            padding: clamp(28px, 5vw, 48px) clamp(24px, 4vw, 56px);
            min-height: 0;
        }

        .split-left__title {
            font-size: clamp(1.75rem, 4vw, 2.75rem);
            font-weight: 800;
            line-height: 1.15;
            letter-spacing: -0.03em;
            max-width: 14ch;
        }

        .split-left__title .accent {
            color: var(--lime-bright);
            text-shadow: 0 0 40px rgba(118, 207, 28, 0.45);
        }

        .split-left__lead {
            margin-top: 14px;
            font-size: clamp(0.9rem, 1.8vw, 1.05rem);
            line-height: 1.55;
            color: rgba(226, 232, 240, 0.88);
            max-width: 36ch;
            font-weight: 500;
        }

        /* Data beams */
        .data-beams {
            position: absolute;
            left: 50%;
            top: 38%;
            width: 4px;
            height: 28%;
            margin-left: -2px;
            background: linear-gradient(to top, rgba(118, 207, 28, 0.5), transparent);
            opacity: 0.35;
            animation: beamFlicker 3s ease-in-out infinite;
            pointer-events: none;
        }

        .data-beams::before,
        .data-beams::after {
            content: '';
            position: absolute;
            bottom: 0;
            width: 3px;
            height: 100%;
            background: linear-gradient(to top, rgba(118, 207, 28, 0.35), transparent);
        }

        .data-beams::before { left: -36px; transform: rotate(-8deg); animation-delay: 0.5s; }
        .data-beams::after { left: 36px; transform: rotate(8deg); animation-delay: 1s; }

        @keyframes beamFlicker {
            0%, 100% { opacity: 0.2; }
            50% { opacity: 0.45; }
        }

        /* GPS stage */
        .gps-stage {
            position: relative;
            flex: 1;
            min-height: 200px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 16px 0;
        }

        .gps-orbit {
            position: absolute;
            left: 50%;
            top: 50%;
            width: 88px;
            height: 88px;
            margin: -44px 0 0 -44px;
        }

        .gps-orbit .ring {
            position: absolute;
            inset: 0;
            border: 2px solid rgba(118, 207, 28, 0.55);
            border-radius: 50%;
            box-shadow: 0 0 20px rgba(118, 207, 28, 0.15);
            animation: ringOut 2.6s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
        }

        .gps-orbit .ring:nth-child(2) { animation-delay: 0.85s; }
        .gps-orbit .ring:nth-child(3) { animation-delay: 1.7s; }

        @keyframes ringOut {
            0% { transform: scale(0.55); opacity: 0.7; }
            100% { transform: scale(2.9); opacity: 0; }
        }

        .gps-sweep {
            position: absolute;
            left: 50%;
            top: 50%;
            width: 55%;
            max-width: 280px;
            aspect-ratio: 1;
            transform: translate(-50%, -50%);
            border-radius: 50%;
            background: conic-gradient(from 0deg, transparent 0deg 280deg, rgba(118, 207, 28, 0.15) 300deg, rgba(118, 207, 28, 0.45) 360deg);
            -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #000 calc(100% - 8px), transparent 100%);
            mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #000 calc(100% - 8px), transparent 100%);
            animation: sweep 4s linear infinite;
        }

        @keyframes sweep {
            to { transform: translate(-50%, -50%) rotate(360deg); }
        }

        .gps-core {
            position: absolute;
            left: 50%;
            top: 50%;
            width: 12px;
            height: 12px;
            margin: -6px 0 0 -6px;
            border-radius: 50%;
            background: radial-gradient(circle at 30% 25%, #ecfccb, var(--lime) 50%, #3f6212);
            box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.95), 0 0 28px var(--lime-glow);
            animation: corePulse 1.6s ease-in-out infinite;
            z-index: 3;
        }

        @keyframes corePulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.1); }
        }

        .gps-pin {
            position: absolute;
            left: 50%;
            top: 50%;
            width: 72px;
            height: 96px;
            transform: translate(-50%, -100%);
            filter: drop-shadow(0 0 24px rgba(118, 207, 28, 0.65)) drop-shadow(0 16px 32px rgba(0, 0, 0, 0.45));
            animation: pinFloat 2.8s ease-in-out infinite;
            z-index: 4;
        }

        .gps-pin svg { width: 100%; height: 100%; display: block; }

        @keyframes pinFloat {
            0%, 100% { transform: translate(-50%, -100%) translateY(0); }
            50% { transform: translate(-50%, -100%) translateY(-12px); }
        }

        .feature-row {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            margin-top: auto;
            padding-top: 8px;
        }

        @media (max-width: 520px) {
            .feature-row { grid-template-columns: 1fr; }
        }

        .feature-card {
            padding: 14px 12px;
            border-radius: 14px;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(118, 207, 28, 0.18);
            backdrop-filter: blur(8px);
            transition: transform 0.25s, border-color 0.25s;
        }

        .feature-card:hover {
            transform: translateY(-3px);
            border-color: rgba(118, 207, 28, 0.4);
        }

        .feature-card svg {
            width: 26px;
            height: 26px;
            color: var(--lime-bright);
            margin-bottom: 8px;
            filter: drop-shadow(0 0 8px rgba(118, 207, 28, 0.4));
        }

        .feature-card h3 {
            font-size: 0.8125rem;
            font-weight: 700;
            margin-bottom: 4px;
            color: #fff;
        }

        .feature-card p {
            font-size: 0.7rem;
            color: rgba(203, 213, 225, 0.85);
            line-height: 1.35;
        }

        /* ========== RIGHT: white form panel ========== */
        .split-right {
            flex: 1;
            min-height: 58vh;
            background: #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: clamp(28px, 5vw, 56px) clamp(22px, 4vw, 48px);
        }

        @media (min-width: 960px) {
            .split-right { min-height: 100vh; }
        }

        .form-panel {
            width: 100%;
            max-width: 420px;
            animation: panelIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
        }

        @keyframes panelIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .form-brand {
            display: flex;
            align-items: center;
            gap: 12px;
            text-decoration: none;
            color: var(--form-text);
            margin-bottom: 28px;
        }

        .form-brand__mark {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: linear-gradient(145deg, var(--lime-bright), var(--lime) 55%, var(--lime-dim));
            display: grid;
            place-items: center;
            box-shadow: 0 4px 16px rgba(118, 207, 28, 0.35);
        }

        .form-brand__mark svg {
            width: 22px;
            height: 22px;
            color: #fff;
        }

        .form-brand span {
            font-weight: 800;
            font-size: 1.125rem;
            letter-spacing: -0.02em;
        }

        .form-panel h1 {
            font-size: clamp(1.75rem, 4vw, 2.125rem);
            font-weight: 800;
            color: var(--form-text);
            letter-spacing: -0.03em;
            margin-bottom: 8px;
        }

        .form-panel .sub {
            font-size: 0.95rem;
            color: var(--form-muted);
            margin-bottom: 28px;
            font-weight: 500;
        }

        .field { margin-bottom: 20px; }

        .field label {
            display: block;
            font-size: 0.8125rem;
            font-weight: 600;
            color: var(--form-text);
            margin-bottom: 8px;
        }

        .input-wrap {
            --field-bg: #f4f6f3;
            --field-bg-focus: #f8fbf6;
            display: flex;
            align-items: stretch;
            border: 1.5px solid #e2e8e0;
            border-radius: 14px;
            background: var(--field-bg);
            box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
            overflow: hidden;
            transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
        }

        .input-wrap:focus-within {
            --field-bg: var(--field-bg-focus);
            border-color: var(--lime);
            box-shadow: 0 0 0 4px rgba(118, 207, 28, 0.14);
        }

        .input-wrap .ico {
            flex-shrink: 0;
            width: 52px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: transparent;
            color: #94a3b8;
            transition: color 0.2s;
        }

        .input-wrap:focus-within .ico {
            color: var(--lime-dim);
        }

        .input-wrap .ico svg {
            width: 20px;
            height: 20px;
            display: block;
        }

        .input-wrap input {
            flex: 1;
            min-width: 0;
            border: none;
            background: transparent !important;
            padding: 15px 14px 15px 0;
            font-family: inherit;
            font-size: 1rem;
            color: var(--form-text);
            box-shadow: none;
        }

        .input-wrap input:focus { outline: none; }

        .input-wrap input::placeholder { color: #9ca3af; }

        /* Keep autofill tint on the whole field, not a separate blue/white block */
        .input-wrap input:-webkit-autofill,
        .input-wrap input:-webkit-autofill:hover,
        .input-wrap input:-webkit-autofill:focus,
        .input-wrap input:-webkit-autofill:active {
            -webkit-text-fill-color: var(--form-text) !important;
            caret-color: var(--form-text);
            transition: background-color 9999s ease-out 0s;
            box-shadow: 0 0 0 1000px var(--field-bg) inset !important;
        }

        .input-wrap:focus-within input:-webkit-autofill,
        .input-wrap:focus-within input:-webkit-autofill:hover,
        .input-wrap:focus-within input:-webkit-autofill:focus {
            box-shadow: 0 0 0 1000px var(--field-bg-focus) inset !important;
        }

        .toggle-pw {
            flex-shrink: 0;
            width: 44px;
            min-width: 44px;
            align-self: stretch;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            margin-right: 4px;
            border: none;
            background: transparent;
            cursor: pointer;
            color: #94a3b8;
            border-radius: 10px;
            transition: color 0.2s, background 0.2s;
        }

        .toggle-pw svg {
            width: 16px;
            height: 16px;
            display: block;
        }

        .input-wrap:focus-within .toggle-pw {
            color: var(--lime-dim);
        }

        .toggle-pw:hover {
            color: var(--lime-dim);
            background: rgba(118, 207, 28, 0.1);
        }

        .row-opt {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 12px;
            margin-bottom: 24px;
            font-size: 0.875rem;
        }

        .remember {
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--form-muted);
            cursor: pointer;
            user-select: none;
        }

        .remember input {
            width: 17px;
            height: 17px;
            accent-color: var(--lime);
            cursor: pointer;
        }

        .forgot {
            color: var(--lime-dim);
            font-weight: 600;
            text-decoration: none;
        }

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

        .btn-signin {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 15px 16px 15px 24px;
            border: none;
            border-radius: 12px;
            font-family: inherit;
            font-size: 1rem;
            font-weight: 700;
            color: #fff;
            cursor: pointer;
            background: linear-gradient(135deg, var(--lime-bright) 0%, var(--lime) 45%, var(--lime-dim) 100%);
            box-shadow: 0 8px 28px rgba(118, 207, 28, 0.38);
            transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
        }

        .btn-signin:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 36px rgba(118, 207, 28, 0.45);
            filter: brightness(1.03);
        }

        .btn-signin__text {
            flex: 1;
            text-align: center;
        }

        .btn-signin__arrow {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #fff;
            display: grid;
            place-items: center;
            flex-shrink: 0;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }

        .btn-signin__arrow svg {
            width: 18px;
            height: 18px;
            color: var(--lime-dim);
        }

        .form-footer {
            margin-top: 28px;
            text-align: center;
        }

        .form-footer__trust {
            display: flex;
            align-items: center;
            gap: 12px;
            justify-content: center;
            margin-bottom: 10px;
            color: var(--form-muted);
            font-size: 0.75rem;
            font-weight: 500;
        }

        .form-footer__line {
            flex: 1;
            height: 1px;
            max-width: 100px;
            background: linear-gradient(90deg, transparent, #e5e7eb 20%, #e5e7eb 80%, transparent);
        }

        .form-footer__mid {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            white-space: nowrap;
        }

        .form-footer__mid svg {
            width: 18px;
            height: 18px;
            color: var(--lime);
            flex-shrink: 0;
        }

        .copyright {
            font-size: 0.6875rem;
            color: #9ca3af;
        }

        .back-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            margin-top: 18px;
            font-size: 0.8125rem;
            font-weight: 600;
            color: var(--form-muted);
            text-decoration: none;
        }

        .back-link:hover { color: var(--lime-dim); }

        .invalid {
            color: #dc2626;
            font-size: 0.75rem;
            margin-top: 6px;
            display: block;
        }

        @media (prefers-reduced-motion: reduce) {
            .map-dots i,
            .gps-orbit .ring,
            .gps-sweep,
            .gps-pin,
            .gps-core,
            .data-beams,
            .form-panel { animation: none !important; }
        }
