        * { margin: 0; padding: 0; box-sizing: border-box; }
        html, body { height: 100%; }
        body {
            font-family: 'Inter', 'Noto Sans Devanagari', system-ui, sans-serif;
            background: #f4f7f4; color: #111827;
            -webkit-font-smoothing: antialiased;
        }
        .wrap { min-height: 100dvh; }

        /* ---------- Auth panel (simple, centered — clean responsive logo) ---------- */
        .auth-panel { width: 100%; display: flex; align-items: center; justify-content: center; padding: 24px; }
        .auth-card { width: 100%; max-width: 430px; }
        .auth-card .logo-mobile {
            display: flex; align-items: center; justify-content: center;
            margin-bottom: 24px; text-decoration: none;
        }
        .auth-card .logo-mobile img {
            height: 42px; max-height: 46px; width: auto; max-width: 180px;
            object-fit: contain; border-radius: 8px;
        }
        @media (max-width: 480px) {
            .auth-card .logo-mobile img { height: 36px; max-height: 38px; max-width: 150px; }
        }
        .auth-card h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; font-family: 'Noto Sans Devanagari', 'Inter', sans-serif; }
        .auth-card p.lead { color: #6b7280; font-size: 14px; line-height: 1.6; margin-bottom: 26px; font-family: 'Noto Sans Devanagari', 'Inter', sans-serif; }

        .step { display: none; }
        .step.active { display: block; }

        .f-label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 7px; font-family: 'Noto Sans Devanagari', 'Inter', sans-serif; }
        .f-phone {
            display: flex; align-items: center; border: 1.5px solid #e3e9e3; border-radius: 14px;
            background: #fff; transition: border .15s, box-shadow .15s;
        }
        .f-phone:focus-within { border-color: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.14); }
        .f-phone .code { padding: 0 12px 0 16px; font-weight: 700; color: #374151; font-size: 15px; border-right: 1px solid #e3e9e3; height: 48px; display: flex; align-items: center; }
        .f-phone input {
            flex: 1; border: 0; outline: none; height: 48px; padding: 0 14px; font-size: 16px; font-weight: 600;
            border-radius: 0 14px 14px 0; background: transparent; letter-spacing: .04em;
        }
        .f-hint { font-size: 12px; color: #9ca3af; margin-top: 7px; font-family: 'Noto Sans Devanagari', sans-serif; }

        .btn {
            width: 100%; height: 50px; border: 0; border-radius: 14px; cursor: pointer;
            background: #16a34a; color: #fff; font-size: 15.5px; font-weight: 700;
            transition: background .15s, transform .05s;
            font-family: 'Noto Sans Devanagari', 'Inter', sans-serif;
        }
        .btn:hover { background: #15803d; }
        .btn:active { transform: scale(.985); }
        .btn[disabled] { opacity: .6; cursor: not-allowed; }
        .btn.secondary {
            background: #fff; color: #374151; border: 1.5px solid #e3e9e3; font-weight: 600;
        }
        .btn.secondary:hover { background: #f6faf6; }

        .link-row { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; font-size: 13.5px; }
        .link-row a { color: #16a34a; font-weight: 600; text-decoration: none; font-family: 'Noto Sans Devanagari', sans-serif; }
        .link-row a:hover { text-decoration: underline; }

        .msg {
            display: none; align-items: flex-start; gap: 10px; border-radius: 12px; padding: 12px 14px;
            font-size: 13.5px; line-height: 1.5; margin-bottom: 16px; font-family: 'Noto Sans Devanagari', sans-serif;
        }
        .msg.show { display: flex; }
        .msg.ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
        .msg.err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
        .msg i { margin-top: 2px; }

        /* ---------- PIN / OTP box (real <input> overlay — mobile keyboard works) ---------- */
        .pinbox { display: flex; gap: 8px; justify-content: center; position: relative; }
        .pinbox .cell {
            width: 46px; height: 54px; border: 1.5px solid #e3e9e3; border-radius: 12px; background: #fff;
            display: flex; align-items: center; justify-content: center; font-size: 21px; font-weight: 700; color: #1f2937;
            transition: border .15s, box-shadow .15s;
        }
        .pinbox.focused .cell.active { border-color: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.14); }
        .pinbox .cell.filled::after { content: ''; width: 11px; height: 11px; border-radius: 50%; background: #1f2937; }
        .pinbox .cell.err { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.12); }
        .pinbox input.pinbox-real {
            position: absolute; inset: 0; width: 100%; height: 100%;
            opacity: 0; border: 0; padding: 0; margin: 0; background: transparent;
            color: transparent; caret-color: transparent; font-size: 16px; /* 16px stops iOS zoom */
            cursor: text; -webkit-user-select: text; user-select: text;
        }
        @media (max-width: 400px) {
            .pinbox { gap: 6px; }
            .pinbox .cell { width: 40px; height: 48px; font-size: 18px; border-radius: 10px; }
        }

        .otp-dest { background: #f6faf6; border: 1px solid #e3e9e3; border-radius: 12px; padding: 10px 14px; font-size: 13px; color: #374151; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; font-family: 'Noto Sans Devanagari', sans-serif; }
        .otp-dest b { font-family: 'Inter', monospace; }

        .legal { margin-top: 22px; font-size: 12px; color: #9ca3af; text-align: center; line-height: 1.6; font-family: 'Noto Sans Devanagari', sans-serif; }
        .legal a { color: #6b7280; }

        .divider { height: 1px; background: #e3e9e3; margin: 22px 0; border: 0; }

        @media (min-width: 1024px) {
            /* Simple centered card on desktop too — the logo stays visible. */
            .auth-panel { padding: 48px; }
        }
        @media (max-width: 400px) { .auth-panel { padding: 16px; } }
    
